9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement
ts
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

ParameterTypeDescription
viewViewBaseStarting view (parent container).
callback(child: ViewBase) => booleanA function to execute on every child. If function returns false it breaks the iteration.

Returns

void

Previous
CSSType