SVGBuilderExtensions.OnInvalid

SVGBuilderExtensions.OnInvalid<TBuilder> method

Sets the ‘oninvalid’ event attribute for handling invalid events on form elements.

public static TBuilder OnInvalid<TBuilder>(this TBuilder builder, string value)
    where TBuilder : ISVGElementBuilder, IGlobalEventAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe SVG element builder.
valueThe JavaScript function or script to execute when the element’s value is invalid.

Return Value

The builder instance for chaining.

See Also