Search...
label
Sets or gets a dropdown's label.
Description
The dropdown's label refers to the title above the element. You can also set the dropdown's label by using the Settings panel in the Editor.
Note: Use the
label
property to set the element's label. To set the label for the options in the dropdown, seeoptions
.
Type:
stringRead & Write, default value is Empty string
Was this helpful?
Get a dropdown's label
Copy Code
1let dropdownLabel = $w("#myDropdown").label; // "New Label"
Set a dropdown's label
Copy Code
1$w("#myDropdown").label = "New Label";