API Reference / @gtkx/testing / PrettyWidgetOptions
Type Alias: PrettyWidgetOptions
PrettyWidgetOptions =
object
Defined in: packages/testing/dist/pretty-widget.d.ts:10
Options controlling how a widget tree is rendered to a string by prettyWidget and logWidget.
Properties
getId?
optionalgetId?:WidgetIdResolver
Defined in: packages/testing/dist/pretty-widget.d.ts:16
Resolves an id attribute to show for each widget.
maxDepth?
optionalmaxDepth?:number
Defined in: packages/testing/dist/pretty-widget.d.ts:18
Stops descending past this depth, replacing deeper children with a summary line.
maxLength?
optionalmaxLength?:number
Defined in: packages/testing/dist/pretty-widget.d.ts:12
Truncates the output once it exceeds this many characters.
prettyFormatOptions?
optionalprettyFormatOptions?:PrettyFormatOptions
Defined in: packages/testing/dist/pretty-widget.d.ts:20
Forwarded to pretty-format, which does the printing; indent and min shape the layout.
shouldHighlight?
optionalshouldHighlight?:boolean
Defined in: packages/testing/dist/pretty-widget.d.ts:14
Whether to apply ANSI color highlighting; defaults to the terminal capabilities.