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
Copy file name to clipboardExpand all lines: docs/nodes/widgets/ui-switch.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,10 @@ props:
5
5
Label: The text shown within the button.
6
6
On Payload: The type & value to output in <code>msg.payload</code> when the switch is turned on.
7
7
Off Payload: The type & value to output in <code>msg.payload</code> when the switch is turned off.
8
+
On Icon: If provided, this <a href="https://pictogrammers.com/library/mdi/" target="_blank">Material Design icon</a> will replace the default switch when in "on" state
9
+
Off Icon: If provided, this <a href="https://pictogrammers.com/library/mdi/" target="_blank">Material Design icon</a> will replace the default switch when in "off" state
10
+
On Color: If provided with a icons, this colour is used for the icon when in "on" state
11
+
Off Color: If provided with a icons, this colour is used for the icon when in "off" state
8
12
---
9
13
10
14
<scriptsetup>
@@ -21,4 +25,4 @@ Adds a toggle switch to the user interface.
21
25
## Example
22
26
23
27
{data-zoomable}
0 commit comments