Skip to content

API Reference / @gtkx/testing / queryAllByPlaceholderText

Function: queryAllByPlaceholderText() ​

queryAllByPlaceholderText<T>(container, text, options?): T[]

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

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

Type Parameters ​

T ​

T extends Accessible = Widget

Parameters ​

container ​

Container

Widget subtree to search.

text ​

Matcher

Matcher for the placeholder text.

options? ​

MatcherOptions<T>

Text matching options.

Returns ​

T[]

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