Interface: Option

Oracle® JavaScript Extension Toolkit (JET)
4.2.0

E91398-01

QuickNav

Fields

oj. Option

Version:
  • 4.2.0
The oj.Option interface defines API for a leaf option of the JET select and combobox. Use oj.Option for a leaf option and oj.Optgroup for a group option.
  • value is a required attribute. It must be a row key in the data provider.
  • label is an optional attribute. If missing, String(value) is used.

See oj.Optgroup for group option

See oj.ojComboboxOne#options

See oj.ojComboboxMany#options

See oj.ojSelectOne#options

See oj.ojSelectMany#options

Fields

disabled :boolean

disabled is an optional attribute. When disabled is true, the option item is not selectable.

label :string

label is an optional attribute. It is the display label for the option item. If it's missing, string(value) will be used.

value :Object

value is required attribute. It must be the row key in the data provider because JET Select and Combobox use "value" to fetch the displayed "label".