eachChild

iterates through child items of a control

void eachChild(string id,function cb);

Parameters

idstringthe ID of a control
cbfunctionthe function that will be applied to every child of the item

Example

toolbar.data.eachChild("menu_1", item => {
    // disable items
    item.$disabled = true;
});
toolbar.paint();

Back to top