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:

  1. Store the value of the options property in a variable.
  2. Make changes to the options array.
  3. Reset the options property with the modified array.
Was this helpful?
Yes
No