SelectItems

ICE.UI. SelectItems

new SelectItems(model)

The selectable items. The model can be either: - A plain object, where each property name is an item value and property value is a label. If label is not a string but plain object, that item is treated as an option group consisting of items modeled by that object. - An array, where each element is plain object with label and value property set. If element's value property is an array, that element is treated as an option group.
Parameters:
Name Type Description
model Array | Object The items model.

Members

_ready :boolean

The flag whether asynchronous I/O completed.
Type:
  • boolean

items :Array.<Object>

The items.
Type:

Methods

cmdClick(The, The)

Invoked when option button is clicked.
Parameters:
Name Type Description
The ICE.Command command instance.
The Object command data.

defaultItem() → {Object}

Returns default item.
Returns:
The default item, or null if empty.
Type
Object

defaultValue() → {string}

Returns default value.
Returns:
The default value, or null if empty.
Type
string

html() → {string}

Returns HTML options markup for SelectOnEx component.
Returns:
The HTML string.
Type
string

indexOf(value) → {number}

Returns an item index for specified value.
Parameters:
Name Type Description
value * The value.
Returns:
the item index.
Type
number

isEmpty() → {boolean}

Determines whether there are no items.
Returns:
true if there are no items, false otherwise.
Type
boolean

item(value) → {Object}

Returns an item with specified value.
Parameters:
Name Type Description
value * The value.
Returns:
the item.
Type
Object

options() → {string}

Returns HTML options.
Returns:
The HTML options string.
Type
string