Skip to contents

Render a spec_ui_descriptor into bslib Shiny UI cards

Usage

render_spec_controls_ui(descriptor, ns = identity, diff = NULL)

Arguments

descriptor

A spec_ui_descriptor returned by spec_to_controls().

ns

Namespace function (typically session$ns inside a module).

diff

Optional spec_diff object used to highlight changed sections and controls with visual diff badges.

Value

An htmltools::tagList of bslib::card() elements.

Examples

desc <- spec_to_controls(new_spec_ir())
ui_cards <- render_spec_controls_ui(desc)
inherits(ui_cards, "shiny.tag.list")
#> [1] TRUE