SVGBuilderExtensions.OnResize

SVGBuilderExtensions.OnResize<TBuilder> method

Sets the ‘onresize’ event attribute for handling resize events of the window or elements.

public static TBuilder OnResize<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 the element or window is resized.

Return Value

The builder instance for chaining.

See Also