Skip to main content

haveItems()

checks whether an item has children

haveItems(id: Id): boolean;

Parameters:

id: string - the ID of a control

Returns:

true, if the control has children; otherwise, false.

Example

if (toolbar.data.haveItems("menu1"))    //do something;