Skip to main content

getOptions()

returns an array of Select options

getOptions(): IOption[];

Returns:

An array with options.

Example

form.getItem("select").getOptions(); // -> [{…}, {…}]

Each option is an object with a set of key:value pairs - attributes of options and their values:

  • value - (string|number) mandatory, sets the value for the select option
  • content - (string) mandatory, the content displayed in the select option
  • disabled - (boolean) optional, defines whether the option is enabled (false) or disabled (true)