Overview
Adds a multi toggle control to the form to simultaneously toggle multiple properties. Supports flexible values to assign to each property for enabled/disabled states.
Custom Configuration
For common configuration values, see UI Controls. Configuration values specific to this control are:
Config Property | Type | Description | Example Values |
options | List of maps |
The options that should be available for toggle. The key is the name of the property stored in the map. The label is shown in the UI (this is optional and will default to displaying the key). |
options: |
valueEnabled | Flexible |
The value to store for each key in the options map when its toggle is enabled. |
valueEnabled: ENABLED |
valueDisabled | Flexible |
The value to store for each key in the options map when its toggle is disabled. |
valueDisabled: DISABLED |
size | String |
Optionally makes the toggle controls larger. |
size: lg |
width | String |
Optionally makes the toggle controls wider. |
width: lg |
Example
- id: formMultiToggle
modelPath: props.SETTINGS
layout: first-column
config:
label: Database Connections
size: lg
valueEnabled: ENABLED
valueDisabled: DISABLED
options:
- key: PROPERTY_1
label: Property 1 Label
- key: PROPERTY_2
label: Property 2 Label
Comments
0 comments
Please sign in to leave a comment.