SVGBuilderExtensions.OnShow

SVGBuilderExtensions.OnShow<TBuilder> method

Sets the ‘onshow’ event attribute, typically used for handling events when a context menu is shown.

public static TBuilder OnShow<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 context menu is shown.

Return Value

The builder instance for chaining.

See Also