iterates through all the parent items (the immediate parent and its parent, etc until the parent is the component itself)
id | string | the ID of the item |
cb | function | the function that will be applied to every parent of the item |
toolbar.data.eachParent("new_btn", item => console.log(item));
Back to top