Signature Pad
Signature Pad allows to draw smooth signatures.
Example
API Methods
setLabel
Sets the label of the field.
- Method
- Usage
setLabel(label: string): void
// Sets the field's label to 'My Text'
a8forms.SignaturePad("SignaturePadId").setLabel('My Text')
setRequired
Sets a field to be required or not.
- Method
- Usage
setRequired(required: boolean): void
// Sets the field as required
a8forms.SignaturePad("SignaturePadId").setRequired(true)
// Sets the field as not required
a8forms.SignaturePad("SignaturePadId").setRequired(false)
setSize
Sets the size only by using the parameters passed in.
- Method
- Usage
setSize(size: "small" | "medium" | "large"): void
//Sets the size of the Checkbox to small
a8forms.SignaturePad("SignaturePadId").setSize("small")
//Sets the size of the Checkbox to medium
a8forms.SignaturePad("SignaturePadId").setSize("medium")
//Sets the size of the Checkbox to large
a8forms.SignaturePad("SignaturePadId").setSize("large")
setVisibility
Sets if elements of the given category is visible in this view.
- Method
- Usage
setVisibility(visible: boolean): void
// setting the visibility true makes the element to visible
a8forms.SignaturePad("SignaturePadId").setVisibility(true)
// setting the visibility false makes the element to not visible
a8forms.SignaturePad("SignaturePadId").setVisibility(false)
setVisibilityCondition
Sets the hide condition
- Method
- Usage
setVisibilityCondition(condition: string): void
// Hides the string
a8forms.SignaturePad("signaturepadId").setVisibilityCondition("1 == 1");