SVGBuilderExtensions.OnFocus

SVGBuilderExtensions.OnFocus<TBuilder> method

Sets the ‘onfocus’ event attribute for handling focus events on the element.

public static TBuilder OnFocus<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 receives focus.

Return Value

The builder instance for chaining.

See Also