Switch
A button that allows us to switch between two states. It is a design section that helps the client or the user choose between two different states.
Last updated
A button that allows us to switch between two states. It is a design section that helps the client or the user choose between two different states.
Last updated
Enter the default Boolean value, true/false, to decide whether the switch be ON/OFF when the widget is loaded. This can also be retrieved from the backend using query or loaded using low-code.
Disables the user interaction with the element on the page. It visually indicates that the element is inactive and prevents users from interacting with it when applied. Shows a red-crossed warning symbol and can be customized to disable the widget according to certain conditions using low-code.
This sets whether the widget has to be displayed on the screen when the program is loaded. This shows/hides the widget both on desktop and mobile devices.
Represents the caption for the widget in the user interface. It is recommended to keep the label string short and convey the usage of the widget in the UI
This tooltip pops up when the user moves the mouse over the label area of the widget. This is commonly used to provide some extra or important information to the user on the usage of the widget.
The tooltip will be immediately shown when the user's mouse hovers over the widget, and immediately hides when the user's mouse leaves. This information will be contextual, useful, and informative.
Enter a number value to set the width of the widget. It can be set in terms of pixels and percentage.
This tooltip pops up when the user moves the mouse over the input area of the widget. It is commonly used to hint at the type of input the user needs to provide.
The tooltip will be immediately shown when the user's mouse hovers over the widget, and immediately hides when the user's mouse leaves. This information will be contextual, useful, and informative.
Event | Description |
---|---|
Property | Description |
---|---|
Property | Description |
---|---|
Property | Description |
---|---|
Label
Set the colour for the label text. Recommended to set in contrast with the background.
Handle
Set the colour of the circle-handle moves to ON and OFF to indicate the switch state
Hover Color
Set the background colour for the widget when the user moves the mouse over it.
Unchecked
Set the background colour for the widget when the switch is toggled OFF.
Checked
Set the background colour for the widget when the switch is toggled ON.
Box Shadow
The is the colour of the shadow that is generated behind the widget box. The X and Y axis values can be altered such that the shadow can be set to fall anywhere behind the widget area. "x-offset" - a positive number specifies the shadow will be on the right of the box, and a negative number will put the shadow on the left of the box. "y-offset" - a negative one means the shadow will be above the box, and a positive number means the shadow will be below the box. "Blur" - if the number is set to 0 then the shadow will be sharp. It will more blurred as the number goes higher, and the shadow will extend further away. "Color" - sets the colour of the shadow. If the colour is not set, the box shadows are drawn in the foreground colour.
Margin
This value is set in terms of "px" number which creates the space between the border and the content of the widget.
Padding
This value is set in terms of "px" number which creates the space between the border and outer elements.
Change
On
Off
Left
Top
Left
Right
The "Change" event is activated when the value of the widget is changed. When this event triggers, the associated action gets executed.
This event is triggered when the switch is toggled ON.
This event is triggered when the switch is toggled ON.
Shows the label on the left side of the tree view
Shows the label on top of the tree view
Align the text on the left corner of the label area
Align the text on the right corner of the label area near the tree view