Blazorise Signature Pad API

Explore the Blazorise Signature Pad API reference for parameters, events, methods, and related types.

For examples and usage guidance, see the Signature Pad documentation.

API

Parameters

ParameterDefaultType
AriaLabelledBy—string

Specifies the aria-labelledby attribute value.
BackgroundColor—string

The color used to define the background color of the signature pad. Can be any color format; including HEX, or rgb.
CanvasHeightnullint?

Specifies the height, in pixels, of the underline canvas element.
CanvasWidthnullint?

Specifies the width, in pixels, of the underline canvas element.
DotSize0double

The radius of a single dot. Also the width of the start of a mark.
ImageQualitynulldouble?

The encoder options for image type [png, jpeg] to get from the canvas element. Accepted range is from 0 to 1, where 1 means best quality.
ImageTypePngSignaturePadImageType

The image type [png, jpeg, svg] to get from the canvas element.
Possible values:PngJpegSvg
IncludeImageBackgroundColorfalsebool

If true, the [svg] image returned from the canvas will include background color defined by the BackgroundColor parameter.
MaxLineWidth0double

The maximum width of a line.
MinDistance0int

Add the next point only if the previous one is farther than 'n' pixels. Defaults to 5.
MinLineWidth0double

The minimum width of a line.
PenColor—string

The color used to define the lines color of the signature pad. Can be any color format; including HEX, or rgb.
ReadOnlyfalsebool

If true, prevents the user interaction.
TabIndexnullint?

If defined, indicates that its element can be focused and can participates in sequential keyboard navigation.
Throttle0int

The time in milliseconds to throttle drawing. Set to 0 to turn off throttling.
Valuenullbyte[]

Gets or sets value for the signature pad.
VelocityFilterWeight0double

The weight used to modify new velocity based on the previous velocity.

Events

EventType
BeginStrokeEventCallback<SignaturePadBeginStrokeEventArgs>

Defines the event that is triggered when a new stroke begins on the signature pad. The event provides information about the starting point of the stroke.
EndStrokeEventCallback<SignaturePadEndStrokeEventArgs>

Defines the event that is triggered when a stroke ends on the signature pad. The event provides the signature pad's current image data as a Data URL.
ValueChangedEventCallback<byte[]>

Defines the event that is triggered when the signature pad value changes. The event provides the new signature as a byte array.

Methods

MethodReturnParameters
ClearTask—

Clears the content of a signature canvas.
GetDataUrlstringbyte[] data, SignaturePadImageType imageType

Gets the data url based on the image type and the data array.
UndoTask—

Undos the last stroke if there is any.