Skip to main content

getLength()

counts child items of a control

getLength(id?: Id): number;

Parameters:

id: string - the ID of a control

Returns:

A number of the child items of the control.

Example

toolbar.data.getLength("menu1");