SVGBuilderExtensions.OnFocusIn

SVGBuilderExtensions.OnFocusIn<TBuilder> method

Sets the ‘onfocusin’ event attribute for handling focus-in events on the element.

public static TBuilder OnFocusIn<TBuilder>(this TBuilder builder, string value)
    where TBuilder : ISVGElementBuilder, IGraphicalEventAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe SVG element builder.
valueThe JavaScript function or script to execute when the element receives focus, typically before the ‘onfocus’ event.

Return Value

The builder instance for chaining.

Remarks

The ‘onfocusin’ event is triggered when an element is about to receive focus. This event differs from ‘onfocus’ in that it supports bubbling and can be used to detect focus changes on child elements as well.

See Also