logo

/Select Box|v1.1.0

Typedef

itemGroupData:

object

selectBox.jsline 145

Data of an item group.
It is used for creating a SelectBox.
ItemGroup supports only 1 level choices, so it does not work to add item groups in the item group.
The example using item groups can be found here.

PROPERTIES
NameTypeDescription

label

string

label to be displayed

data

array

data for item

disabled

[ boolean ] = false

whether an item group should be disabled or not

EXAMPLES
const itemGroupData = {
  label: 'disabled items',
  data: [
    { label: 'disable', value: 'disable' },
    { label: 'none', value: '0' }
  ],
  disabled: true
};
Resizable