SVGBuilderExtensions.OnSubmit

SVGBuilderExtensions.OnSubmit<TBuilder> method

Sets the ‘onsubmit’ event attribute for handling form submission events.

public static TBuilder OnSubmit<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 a form is submitted.

Return Value

The builder instance for chaining.

See Also