New to Kendo UI for AngularStart a free 30-day trial

Represents the Kendo UI Signature component for Angular.

Use the Signature to let users add a hand-drawn signature to forms.

Definition

Package:@progress/kendo-angular-inputs

Selector:kendo-signature

Export Name:Accessible in templates as #kendoSignatureInstance="kendoSignature"

Syntax:

html
<kendo-signature [(ngModel)]="signatureValue"></kendo-signature>

Inputs

Sets the background color of the Signature.

Accepts CSS color names and hex values. The default value is determined by the theme $kendo-input-bg variable.

Sets the stroke color of the Signature.

Accepts CSS color names and hex values. The default value is determined by the theme $kendo-input-text variable.

disabled

boolean

Sets the disabled state of the Signature.

Set to true to disable the component and prevent any user interaction. To disable the component in reactive forms, see Managing the Signature Disabled State in Reactive Forms.

Default:

false

Sets the scale factor for the exported image.

The Signature width and height are multiplied by this value when converting the signature to an image.

Default:

DEFAULT_EXPORT_SCALE

Sets the background and border styles of the Signature (see example). The default value is set by the Kendo theme.

height

number

Sets the height of the Signature in pixels.

You can also set the height using inline styles or CSS.

hideLine

boolean

When set to true, hides the dotted line in the background.

Default:

false

When set to true, allows the Signature to be maximized.

Default:

true

Sets the scale factor for the popup.

The Signature width and height are multiplied by this value when showing the popup.

Default:

DEFAULT_POPUP_SCALE

readonly

boolean

Sets the read-only state of the Signature.

Set to true to prevent editing.

Default:

false

Sets the border radius of the Signature (see example). The default value is set by the Kendo theme.

Sets the padding of the Signature internal controls (ee example). The default value is set by the Kendo theme.

smooth

boolean

When set to true, smooths out signature lines.

Default:

false

Sets the stroke width of the Signature.

Default:

1

tabindex

number

Specifies the tabindex of the component.

Default:

0

value

string

Gets or sets the value of the Signature.

The value is a Base64-encoded PNG image.

width

number

Sets the width of the Signature in pixels.

You can also set the width using inline styles or CSS.

Fields

isFocused

boolean

Indicates if the Signature wrapper is focused.

Default:

false

isOpen

boolean

Indicates if the Signature popup is open.

Events

Fires when the Signature loses focus.

Fires before the popup closes.

This event is preventable. If you cancel it, the popup stays open.

Fires when the Signature receives focus.

Fires before the popup opens.

This event is preventable. If you cancel it, the popup stays closed.

Fires when the signature value changes.

Methods

Blurs the Signature.

Focuses the Signature wrapper container.

Clears the value of the Signature.

Toggles the popup of the Signature.

Does not trigger the open and close events.

Parameters:open?boolean

Optional. Set to true to open or false to close the popup.