API Reference / @gtkx/testing / getRoles
Variable: getRoles
constgetRoles: (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
The scope to traverse.
Returns
Map<string, Gtk.Widget[]>
A map from role name to the mapped widgets that have that role.