Skip to content

API Reference / @gtkx/testing / formatRole

Variable: formatRole

const formatRole: (role) => string

Defined in: 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

Released under the MPL-2.0 License.