logo

/Select Box|v1.1.0

Class

new ItemGroup()itemGroup.jsline 18

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

Instance Methods

getIndex()itemGroup.jsline 141

Return an item group's index.

RETURNS:
{

number

}

getItems()itemGroup.jsline 133

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 149

Return an item group's label.

RETURNS:
{

string

}

isDisabled()itemGroup.jsline 157

Return whether an ItemGroup is disabled or not.

RETURNS:
{

boolean

}
Resizable