API Reference / @gtkx/testing / computeHeadingLevel
Variable: computeHeadingLevel
constcomputeHeadingLevel: (widget) =>number|undefined
Defined in: packages/testing/dist/role-helpers.d.ts:40
Returns the heading or hierarchy level GTK reports for a widget, or undefined when it declares none.
Parameters
widget
Gtk.Widget
The widget to read the level from.
Returns
number | undefined