You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| maxWidth | integer | The max width of this Input widget (default 700). while min vlaue can be `0` and maximum can be `5000`|
13
-
| label | string | Label for your widget |
14
-
| labelHint | string | Hint text on your label |
15
-
| hintText | string | Hint text explaining your widget |
16
-
| required | boolean | Whether the field is required |
17
-
| enabled | boolean | Enables or disables the interactivity and input functionality of the widget |
18
-
| icon | object |[See properties](#icon)|
19
-
| onChange | action | Call Ensemble's built-in functions or execute code when the input changes. Note for free-form text input, this event only dispatches if the text changes AND the focus is lost (e.g. clicking on button) |
20
-
| onChangeHaptic | enum | The type of haptic to perform when switch state is changed. It should be one of heavyImpact, mediumImpact, lightImpact, selectionClick, and vibrate |
21
-
| value | string | Specifying the value of your Text Input |
| maxWidth | integer | The max width of this Input widget (default 700). while min value can be `0` and maximum can be `5000`|
13
+
| label | string | Label for your widget |
14
+
| labelHint | string | Hint text on your label |
15
+
| hintText | string | Hint text explaining your widget |
16
+
| required | boolean | Whether the field is required |
17
+
| enabled | boolean | Enables or disables the interactivity and input functionality of the widget |
18
+
| icon | object |[See properties](#icon)|
19
+
| onChange | action | Call Ensemble's built-in functions or execute code when the switch value changes |
20
+
| onChangeHaptic | enum | The type of haptic to perform when switch state is changed. It should be one of heavyImpact, mediumImpact, lightImpact, selectionClick, and vibrate |
21
+
| value | boolean | The current state of the switch. `true` for on, `false` for off |
| items | array | List of values, or Objects with value/label pairs |
24
+
| styles | object |[see properties](#styles)|
25
+
| leadingText | string | Sets the text displayed before the switch |
26
+
| trailingText | string | Sets the text displayed after the switch |
27
+
| activeColor | color | The color of the switch track when it is in the active/on state, starting with '0xFF' for full opacity. |
28
+
| inactiveColor | color | The color of the switch track when it is in the inactive/off state, starting with '0xFF' for full opacity.|
29
+
| activeThumbColor | color | The color of the switch thumb when it is in the active/on state, starting with '0xFF' for full opacity. |
30
+
| inactiveThumbColor | color | The color of the switch thumb when it is in the inactive/off state, starting with '0xFF' for full opacity.|
31
+
| useIOSStyle | boolean | If true, renders the switch using iOS-style appearance (CupertinoSwitch). When false, uses Material style (default) |
36
32
37
33
### styles
38
34
@@ -61,7 +57,6 @@ The Switch Widget enables the rendering of switch toggle elements, providing use
61
57
| borderRadius | string or integer | The border radius of the widget.This can be specified using CSS-like notation with 1 to 4 integers. Minimum value: 0. |
62
58
| borderColor | integer or string | Sets the border color, starting with '0xFF' for full opacity. `transparent``black``blue``white``red``grey``teal``amber``pink``purple``yellow``green``brown``cyan``indigo``lime``orange`|
63
59
| borderWidth | integer | Thickness of the border. Minimum value should be 0. |
64
-
| expanded | boolean | If the parent is a Row or Column, this flag will stretch this widget in the appropriate direction. (e.g stretch horizontally for parent of type Row) |
0 commit comments