API Documentation

Treeview

Themable, WAI-ARIA accessible javascript treeview with mouse and keyboard interactions for navigation. For examples, check out TreeView demo page.

Properties

Key Type Required Description
collapseDuration string|numeric No Possible values are: slow, normal, fast or numeric. Defaults to false
dataSource zino.DataSource Yes Defaults to null
easing string No Possible values are: linear, swing. Defaults to linear
expandDuration string|numeric No Possible values are: slow, normal, fast or numeric. Defaults to 350

Methods

Method Arguments Description
collapseAll .zinoTreeview("collapseAll") Closes all open treeview items.
collapse .zinoTreeview("collapse", node) Closes the given treeview item.
expandAll .zinoTreeview("expandAll") Opens all treeview items.
expand .zinoTreeview("expand", node) Opens the sub-list below the given treeview item, if one exists.
getNext .zinoTreeview("getNext", node) Returns the next node of the given treeview item, if one exists.
getPrev .zinoTreeview("getPrev", node) Returns the previous node of the given treeview item, if one exists.
getSelected .zinoTreeview("getSelected") Returns the currently active treeview item.
remove .zinoTreeview("remove", node) Remove a treeview item.
select .zinoTreeview("select", node) Select a treeview item.

Events

Event Arguments Description
expand event, ui Triggered when treeview item expands.
collapse event, ui Triggered when treeview item collapses.
select event, ui Triggered after treeview item has been selected.
remove event, ui Triggered after treeview item has been removed.