logo

/Select Box|v1.0.0

Class

new ItemGroup()itemGroup.jsline 19

A group of items.
You can get ItemGroup by SelectBox.getItemGroup() and SelectBox.getItemGroups().

Instance Methods

getIndex()itemGroup.jsline 142

Return an item group's index.

RETURNS:
{

number

}

getItems()itemGroup.jsline 134

Get items in the item group.

RETURNS:
{

array.<Item>

}
EXAMPLES
const items = itemGroup.getItems();
console.log(items[0]); // first item in the item group
console.log(items.length); // the number of items in the item group

getLabel()itemGroup.jsline 150

Return an item group's label.

RETURNS:
{

string

}

isDisabled()itemGroup.jsline 158

Return whether an ItemGroup is disabled or not.

RETURNS:
{

boolean

}
Resizable