KoolMenuItem Class [Javascript]

Summary

Properties Description
id Get the id of KoolMenuItem.
Methods Description
collapse Make menu item collapse its sub panel.
expand Make menu item expand its sub panel.
select Make menu item selected.
isEnabled Get whether the menu item is enabled.
hasChild Get whether the menu item has child.
enable Enabled or disabled menu item.
getChildItems Return the list of child menu items.

Properties Detail

idTop

string id

Get the id of KoolMenuItem.

Show/Hide Code

Supported from version: 1.0.0.1

Methods Detail

collapseTop

void collapse()

Make menu item collapse its sub panel.

Show/Hide Code

Supported from version: 1.0.0.0

expandTop

void expand()

Make menu item expand its sub panel.

Show/Hide Code

Supported from version: 1.0.0.0

selectTop

void select()

Make menu item selected.

Show/Hide Code

Supported from version: 1.0.0.0

isEnabledTop

bool isEnabled()

Get whether the menu item is enabled.

Show/Hide Code

Supported from version: 1.0.0.0

hasChildTop

bool hasChild()

Get whether the menu item has child. This function is useful to determine whether the menu item contains a sub group of child items.

Show/Hide Code

Supported from version: 1.0.0.0

enableTop

void enable(bool _bool)

Enabled or disabled menu item.

Show/Hide Code

Supported from version: 1.0.0.0

getChildItemsTop

array getChildItems()

Return the list of child menu items.

Show/Hide Code

Supported from version: 1.0.0.1