Search...
placeholder
Sets or gets the dropdown's placeholder text.
Description
Placeholder text is typically used to provide a hint to the user describing what the dropdown is for. When the user chooses an option, the placeholder text disappears.
Type:
stringRead & Write
Was this helpful?
Get a dropdown's placeholder text
Copy Code
1let placeholderStr = $w("#myDropdown").placeholder; // "Enter name"
Set a dropdown's placeholder text
Copy Code
1$w("#myDropdown").placeholder = "Choose your city";