List

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:
  • Clear the list.
Source:

doSelect(sid)

Description:
  • Select specified item in the list.
Source:
Parameters:
Name Type Description
sid

getItemTree() → {array|*}

Description:
  • Get list item tree.
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:
  • Checks if list is empty.
Source:
Returns:
Type
boolean