List
new List(e, mode)
- Description:
- List UI element class. Use data-listname HTML tag to set element name.
- Source:
Parameters:
Name |
Type |
Default |
Description |
e |
|
|
|
mode |
|
list
|
|
Methods
doAdd(data, level, flags)
- Description:
- Add new item to the list.
- Source:
Parameters:
Name |
Type |
Description |
data |
|
|
level |
|
|
flags |
|
|
doClear()
- Description:
- Source:
doSelect(sid)
- Description:
- Select specified item in the list.
- Source:
Parameters:
Name |
Type |
Description |
sid |
|
|
getItemTree() → {array|*}
- Description:
- Source:
Returns:
-
Type
-
array
|
*
getSelectedElement() → {*|null}
- Description:
- Get current selected item (for selectable list).
- Source:
Returns:
-
Type
-
*
|
null
getState() → {null|*}
- Description:
- Get id of current selected item (for selectable list).
- Source:
Returns:
-
Type
-
null
|
*
isEmpty() → {boolean}
- Description:
- Source:
Returns:
-
Type
-
boolean