Scanner
Scanner is an input device that allows users to capture single or multiple documents, like images, etc.
Example
API Methods
setReadOnly
Sets the ReadOnly flag for this context. When in ReadOnly the user cannot be able to edit the content.
- Method
- Usage
setReadOnly(readOnly: boolean): void
//sets the field to ReadOnly not editable by the user
a8forms.Scanner("scannerId").setReadOnly(true)
// sets the field to be active, editable by the user
a8forms.Scanner("scannerId").setReadOnly(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.Scanner("scannerId").setSize("small")
//Sets the size of the Checkbox to medium
a8forms.Scanner("scannerId").setSize("medium")
//Sets the size of the Checkbox to large
a8forms.Scanner("scannerId").setSize("large")
setVisibility
Sets the elements of the given category to visible in this view.
- Method
- Usage
setVisibility(visible: boolean): void
// setting the visibility true makes the element to visible
a8forms.Scanner("scannerId").setVisibility(true)
// setting the visibility false makes the element to not visible
a8forms.Scanner("scannerId").setVisibility(false)
setVisibilityCondition
Sets the hide condition
- Method
- Usage
setVisibilityCondition(condition: string): void
// Hides the string
a8forms.Scanner("scannerId").setVisibilityCondition("1 == 1");