SVGBuilderExtensions.OnFocusOut

SVGBuilderExtensions.OnFocusOut<TBuilder> method

Sets the ‘onfocusout’ event attribute for handling focus-out events on the element.

public static TBuilder OnFocusOut<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 loses focus, typically before the ‘onblur’ event.

Return Value

The builder instance for chaining.

Remarks

The ‘onfocusout’ event is triggered when an element is about to lose focus. Similar to ‘onfocusin’, this event supports bubbling and can be used to detect focus changes on child elements as well.

See Also