haveItems()
checks whether an item has children
haveItems(id: string | number): boolean;
Parameters:
id: string | number
- the ID of a control
Returns:
true
, if the control has children; otherwise, false
.
Example
if (toolbar.data.haveItems("menu1"))
//do something;