Skip to content

API Reference / @gtkx/testing / queryAllByPlaceholderText

Function: queryAllByPlaceholderText()

queryAllByPlaceholderText(container, text, options?): Widget[]

Defined in: packages/testing/dist/queries.d.ts:207

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

Parameters

container

Container

Widget subtree to search.

text

Matcher

Matcher for the placeholder text.

options?

MatcherOptions

Text matching options.

Returns

Widget[]

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

Released under the MPL-2.0 License.