Skip to content

API Reference / @gtkx/testing / getRoles

Variable: getRoles

const getRoles: (container) => Map<string, Gtk.Widget[]>

Defined in: packages/testing/dist/role-helpers.d.ts:18

Groups every mapped widget in a container's tree by its accessible role name. Widgets that are not mapped are left out.

Parameters

container

Container

The scope to traverse.

Returns

Map<string, Gtk.Widget[]>

A map from role name to the mapped widgets that have that role.

Released under the MPL-2.0 License.