options
optionsArray<Option>
Sets or gets the options in a dropdown.
Setting the options property sets all the options available to a user.
Set options to an empty array ([]) to remove the current dropdown options.
Getting the options property returns the current list of options available to a user.
You cannot modify the options array in-place. To add, change, or remove individual dropdown options:
- Store the value of the options property in a variable.
- Make changes to the options array.
- Reset the options property with the modified array.
Was this helpful?
Yes
No