Documentation

class Widgetmethod

findViewContent()

Searches the view hierarchy for view objects of the provided type.

findViewContent<T extends View>(type: new (...args: any[]) => T): T[];

Summary

This method looks for matching view objects in the current view structure — including the view itself. If a view object is an instance of the provided class, it’s added to the list. Objects within matching views aren’t searched for further matches.

Parameters

Return value

An array with instances of the provided view class; may be empty but never undefined.

Related