Skip to content

API Reference / @gtkx/testing / queryAllByName

Function: queryAllByName() ​

queryAllByName<T>(container, name, options?): T[]

Defined in: packages/testing/src/queries.ts:452

Finds every widget whose widget name matches. Widgets that are not mapped are never matched.

Type Parameters ​

T ​

T extends Accessible = Widget

Parameters ​

container ​

Container

Widget subtree to search.

name ​

Matcher

Matcher for the widget name.

options? ​

MatcherOptions<T>

Text matching options.

Returns ​

T[]

Every matching widget, or an empty array when none match.