API Reference / @gtkx/testing / prettyWidget
Function: prettyWidget()
prettyWidget(
container,options?):string
Defined in: packages/testing/src/pretty-widget.ts:243
Renders a widget tree as an indented, HTML-like string showing each widget's tag, accessible attributes, and text content.
Parameters
container
The scope whose widget tree is formatted.
options?
PrettyWidgetOptions = {}
Formatting options such as truncation length and highlighting.
Returns
string
The formatted representation of the tree.