API Reference / @gtkx/testing / computeHeadingLevel
Function: computeHeadingLevel()
computeHeadingLevel(
widget):number|undefined
Defined in: packages/testing/src/role-helpers.ts:129
Returns the heading or hierarchy level GTK reports for a widget, or undefined when it declares none.
Parameters
widget
Accessible
The widget to read the level from.
Returns
number | undefined