inspect_widget: Inspect a widget

View source: R/devtools.R

inspect_widgetR Documentation

Inspect a widget

Description

Collects what termr knows about a widget: type, id, classes, region, states, reactive state values, computed style, matching stylesheet rules, bindings, parent and children. Printing the result gives a readable report.

Usage

inspect_widget(x, selector = NULL)

Arguments

x

An App or a widget.

selector

A selector to find the widget when x is an app (or a container).

Value

A list of class termr_inspection.

Examples

ui <- vertical(button("Save", id = "save", classes = "primary"))
inspect_widget(ui, "#save")

termr documentation built on Oct. 21, 2026, 5:13 p.m.