Members
config
signature
Properties:
Name | Type | Description |
---|---|---|
A |
Array.<Array.<Number>> | series of x,y coordinates in the format of: |
signatureLabelText
Properties:
Name | Type | Description |
---|---|---|
Text |
String | used for ARIA label |
signatureText
Properties:
Name | Type | Description |
---|---|---|
Text |
String | used within button |
widgetTemplate
Properties:
Name | Type | Description |
---|---|---|
Simplate |
Simplate | that defines the fields HTML Markup
|
Methods
clearValue()
Clears the value set to the hidden field
createNavigationOptions() → {Object}
Extends the parent implementation by
also passing the signature
array.
Returns:
Navigation options
- Type
- Object
formatValue(val) → {Array/String}
Since the EditorField calls formatValue
during complete
we need to override to simply return the value given.
Parameters:
Name | Type | Description |
---|---|---|
val |
Returns:
- Type
- Array/String
getValuesFromView()
Complete override that gets the editor view, gets the values and calls set value on the field
setValue(val, initial)
Sets the signature value by using format.imageFromVector
to the img node and setting the array directly to originalValue
.
Parameters:
Name | Type | Description |
---|---|---|
val |
||
initial |