KoolSlideMenu Class [Javascript]

Summary

Methods Description
getItem Get the item of slidemenu including slidemenu parent,child and panel.
getSelectedId Return array of id of selected nodes.
expandAll Expand all parents of slidemenu
collapseAll Collapse all parents of slidemenu
registerEvent Register an client-side event.

Methods Detail

getItemTop

object getItem(string id)

Get the item of slidemenu including slidemenu parent,child and panel. The return object could be SlideMenuParent, SlideMenuChild, SlideMenuPanel

Show/Hide Code

Supported from version: 1.0.0.0

getSelectedIdTop

string getSelectedId()

Return array of id of selected nodes.

Show/Hide Code

Supported from version: 1.0.0.0

expandAllTop

void expandAll()

Expand all parents of slidemenu

Show/Hide Code

Supported from version: 1.0.0.0

collapseAllTop

void collapseAll()

Collapse all parents of slidemenu

Show/Hide Code

Supported from version: 1.0.0.0

registerEventTop

void registerEvent(string eventName, function handleEvent)

Register an client-side event.
Allowed eventName:

    "OnBeforeSelect"
    "OnBeforeUnSelect"
    "OnBeforeExpand"
    "OnBeforeCollapse"
    "OnSelect"
    "OnUnSelect"
    "OnExpand"
    "OnCollapse"
    "OnParentMouseOver"
    "OnParentMouseOut"
    "OnChildMouseOver"
    "OnChildMouseOut"

Show/Hide Code

Supported from version: 1.0.0.0