Module: argos/Fields/SignatureField

Members

config

Source:

signature

Properties:
Name Type Description
A Array.<Array.<Number>>

series of x,y coordinates in the format of: [[0,0],[1,5]]

Source:

signatureLabelText

Properties:
Name Type Description
Text String

used for ARIA label

Source:

signatureText

Properties:
Name Type Description
Text String

used within button

Source:

widgetTemplate

Properties:
Name Type Description
Simplate Simplate

that defines the fields HTML Markup

  • $ => Field instance
  • $$ => Owner View instance
Source:

Methods

clearValue()

Clears the value set to the hidden field

Source:

createNavigationOptions() → {Object}

Extends the parent implementation by also passing the signature array.

Source:
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
Source:
Returns:
Type
Array/String

getValuesFromView()

Complete override that gets the editor view, gets the values and calls set value on the field

Source:

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
Source: