Skip to content

API Reference / @gtkx/testing / getWidgetText

Variable: getWidgetText

const getWidgetText: (widget) => string | null

Defined in: packages/testing/dist/widget-accessible-properties.d.ts:10

Returns a widget's own text by trying its label, text, and title getters in order, or null when none produce a value.

Parameters

widget

Gtk.Widget

The widget to read text from.

Returns

string | null

Released under the MPL-2.0 License.