SVGBuilderExtensions.OnError

SVGBuilderExtensions.OnError<TBuilder> method

Sets the ‘onerror’ event attribute for handling error events on the element.

public static TBuilder OnError<TBuilder>(this TBuilder builder, string value)
    where TBuilder : ISVGElementBuilder, ICommonEventAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe SVG element builder.
valueThe JavaScript function or script to execute when an error occurs.

Return Value

The builder instance for chaining.

See Also