SVGBuilderExtensions.OnDrop

SVGBuilderExtensions.OnDrop<TBuilder> method

Sets the ‘ondrop’ event attribute for handling the dropping of an item onto a valid drop target.

public static TBuilder OnDrop<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 an item is dropped onto a valid drop target.

Return Value

The builder instance for chaining.

See Also