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
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".