Switch Row
A Switch component that can be toggled between a selected and unselected state and allows you to define a label. It returns a boolean (true
or false
).
Style Properties
Style properties allow you to customize the look and feel of the component. Combinations of styles applied to components can be saved as Stylesheets to easily reuse styles throughout your app. Styles can also be set dynamically using Variables. To learn more about all the different styling properties and how they work, take a look at Intro to Styling.
Component Specific Styles
Property | Description |
---|---|
Active Track Color | Set the color of the Switch component when its value is true . |
Inactive Track Color | Set the color of the Switch component when its value is false . |
Active Thumb Color | Set the color of the thumb when the component value is true . |
Inactive Thumb Color | Set the color of the thumb when the component value is false . |
Direction | Set the direction of label and switch component using a dropdown menu. Values: row (default) and row-reverse . |
Configuration Properties
Property | Description |
---|---|
Component name | To alter the name of the component. The name is reflected in the Layout tree. Defaults to Switch Row. |
Data Configuration
Property | Description |
---|---|
Label | Set the value of the label in the Switch Row component. You can also initialize the label value from a data source. |
Disabled | Remove toggle functionality, gray out the switch, and sets it as unselected. You can also initialize it by a boolean value from a data source. Accepted values: true or false . |
Data Source value | Initialize the stateful component with a value from a data source. |
Conditional Display
You can conditionally display a component based on a given condition. Learn more about conditionally displaying components in the Conditional Display doc.
Triggers
Trigger name | Description |
---|---|
On Value Change | Runs the Actions when the value changes |
Updated 4 months ago