Skip to contents

Base AST Server

Usage

ast_base_server(
  id,
  ast,
  selected_nodes = shiny::reactive(integer(0)),
  enable_preview = TRUE,
  selection_mode = "readonly",
  id_prefix = NULL
)

Arguments

id

Character. Module namespace ID

ast

Reactive. The parsed AST object

selected_nodes

Reactive. Currently selected node indices (optional)

enable_preview

Logical. Whether to enable preview functionality

selection_mode

Character. Selection mode ("interactive", "readonly", "highlight_only")

id_prefix

Character. Optional prefix for button IDs to avoid collisions