Interface: Option

Oracle® JavaScript Extension Toolkit (JET)
16.1.0

F92237-01

Since:
  • 4.1.0
Module:
  • ojselectcombobox

QuickNav

Fields

Description

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

See oj.ojMenuSelectMany#options


Usage

Typescript Import Format
//To use this interface, import as below.
import {Option} from "ojs/ojselectcombobox";

For additional information visit:


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

See oj.ojMenuSelectMany#options

Fields

(nullable) disabled :boolean

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

(nullable) 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".