collapseTop
void collapse()
Make menu item collapse its sub panel.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var _item_open = km.getItem("open");
_item_open.collapse();
}
</script>
Supported from version: 1.0.0.0
expandTop
void expand()
Make menu item expand its sub panel.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var _item_open = km.getItem("open");
_item_open.expand();
}
</script>
Supported from version: 1.0.0.0
selectTop
void select()
Make menu item selected.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var _item_open = km.getItem("open");
_item_open.select();
}
</script>
Supported from version: 1.0.0.0
isEnabledTop
bool isEnabled()
Get whether the menu item is enabled.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var _item_open = km.getItem("open");
if(_item_open.isEnabled()==false)
{
alert("Item is disabled");
}
}
</script>
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
<script type="text/javascript">
function foo()
{
var _item_open = km.getItem("open");
if(_item_open.hasChild()==true)
{
alert("Item has child.");
}
}
</script>
Supported from version: 1.0.0.0
enableTop
void enable(bool _bool)
Enabled or disabled menu item.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var _item_open = km.getItem("open");
_item_open.enable(false);// Disable the menu item.
}
</script>
Supported from version: 1.0.0.0
getChildItemsTop
array getChildItems()
Return the list of child menu items.
Show/Hide Code
<script type="text/javascript">
function foo()
{
var _item_open = km.getItem("open");
var _children = _item_open.getChildItems();
}
</script>
Supported from version: 1.0.0.1