SVGBuilderExtensions.OnClick

SVGBuilderExtensions.OnClick<TBuilder> method

Sets the ‘onclick’ event attribute for handling click events on the element.

public static TBuilder OnClick<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 on click events.

Return Value

The builder instance for chaining.

See Also