SVGBuilderExtensions.OnToggle

SVGBuilderExtensions.OnToggle<TBuilder> method

Sets the ‘ontoggle’ event attribute for handling events when the user toggles a control, like a details element.

public static TBuilder OnToggle<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 control is toggled.

Return Value

The builder instance for chaining.

See Also