Functions
eachDescendant
function eachDescendant(view: ViewBase, callback: (child: ViewBase) => boolean): void;Defined in: ui/core/view-base/index.ts
Iterates through all child views (via visual tree) and executes a function.
Parameters
| Parameter | Type | Description |
|---|---|---|
view | ViewBase | Starting view (parent container). |
callback | (child: ViewBase) => boolean | A function to execute on every child. If function returns false it breaks the iteration. |
Returns
void
- Previous
- CSSType
- Next
- fromObject