Skip to content

API Reference / @gtkx/testing / getWidgetTextContent

Variable: getWidgetTextContent

const getWidgetTextContent: (widget) => string | null

Defined in: widget-accessible-properties.d.ts:23

Returns a widget's own text, or the space-joined text of its descendants when it has none of its own, or null when neither produces a value.

Parameters

widget

Gtk.Widget

The widget whose subtree is read.

Returns

string | null

Released under the MPL-2.0 License.