getLength()
counts child items of a control
getLength(id?: string | number): number;
Parameters:
id?: string | number- optional, the ID of a control
Returns:
A number of the child items of the control.
Example
const itemsLength = toolbar.data.getLength("menu1");