SVGBuilderExtensions.OnLoad

SVGBuilderExtensions.OnLoad<TBuilder> method

Sets the ‘onload’ event attribute for handling load events on the element.

public static TBuilder OnLoad<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 has finished loading.

Return Value

The builder instance for chaining.

See Also