Document Collector
Document Collector is an input widget that allows users to collect multiple documents.
Example
API Methods
setSize
Sets the size only using the parameters passed in.
- Method
- Usage
setSize(size: "small" | "medium" | "large"): void
//Sets the size to small
a8forms.DocumentCollector("widgetId").setSize("small")
//Sets the size to medium
a8forms.DocumentCollector("widgetId").setSize("medium")
//Sets the size to large
a8forms.DocumentCollector("widgetId").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.DocumentCollector("widgetId").setVisibility(true)
// setting the visibility false makes the element to not visible
a8forms.DocumentCollector("widgetId").setVisibility(false)
setVisibilityCondition
Sets the hide condition
- Method
- Usage
setVisibilityCondition(condition: string): void
// Hides the string
a8forms.DocumentCollector("widgetId").setVisibilityCondition("1 == 1");