Метод | Описание | |
---|---|---|
createListItem ( $index ) : |
Creates a list item object. | |
findIndexByText ( $text, $includeDisabled = true ) : integer | Finds the lowest cardinal index of the item whose text is the one being looked for. | |
findIndexByValue ( $value, $includeDisabled = true ) : integer | Finds the lowest cardinal index of the item whose value is the one being looked for. | |
findItemByText ( $text, $includeDisabled = true ) : |
Finds the item whose text is the one being looked for. | |
findItemByValue ( $value, $includeDisabled = true ) : |
Finds the item whose value is the one being looked for. | |
insertAt ( $index, $item ) | Inserts an item into the collection. | |
loadState ( $state ) | Loads state into every item in the collection. | |
saveState ( ) : array | null | Saves state of items. |
Метод | Описание | |
---|---|---|
createNewListItem ( $text = null ) : |
public createListItem ( $index ) : |
||
Результат | list item object |
protected createNewListItem ( $text = null ) : |
||
Результат | new item. |
public findIndexByText ( $text, $includeDisabled = true ) : integer | ||
Результат | integer | the index of the item found, -1 if not found. |
public findIndexByValue ( $value, $includeDisabled = true ) : integer | ||
Результат | integer | the index of the item found, -1 if not found. |
public findItemByText ( $text, $includeDisabled = true ) : |
||
Результат | the item found, null if not found. |
public findItemByValue ( $value, $includeDisabled = true ) : |
||
Результат | the item found, null if not found. |
public loadState ( $state ) |