Search.../

label

Sets or gets the toggle switch label.

Max: 120 characters

Type:

string

 | 

null
Read & Write

Was this helpful?

Get the dashboard toggle switch label

Copy Code
1let myLabel = $w('#myElement').label; // "Full Name"
Set the dashboard toggle switch label

Copy Code
1$w('#myElement').label = "Full Name";
Disable the dashboard toggle switch label

Copy Code
1$w('#myElement').label = null; // Disables the element's label