Skip to content

API Reference / @gtkx/testing / formatRole

Variable: formatRole ​

const formatRole: (role) => string

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

Converts an accessible role enum value into its lowercase name, falling back to the numeric value when the role is unknown.

Parameters ​

role ​

Gtk.AccessibleRole

The accessible role to format.

Returns ​

string