Skip to content

API Reference / @gtkx/testing / PrettyWidgetOptions

Type Alias: PrettyWidgetOptions

PrettyWidgetOptions = object

Defined in: pretty-widget.d.ts:8

Options controlling how a widget tree is rendered to a string by prettyWidget and logWidget.

Properties

getId?

optional getId?: WidgetIdResolver

Defined in: pretty-widget.d.ts:14

Resolves an id attribute to show for each widget.


highlight?

optional highlight?: boolean

Defined in: pretty-widget.d.ts:12

Whether to apply ANSI color highlighting; defaults to the terminal capabilities.


maxLength?

optional maxLength?: number

Defined in: pretty-widget.d.ts:10

Truncates the output once it exceeds this many characters.

Released under the MPL-2.0 License.