update_bscui_ui_elements {bscui}R Documentation

Update the type and title of bscui ui elements in 'shiny' app

Description

Update the type and title of bscui ui elements in 'shiny' app

Usage

update_bscui_ui_elements(proxy, ui_elements)

Arguments

proxy

a bscui_Proxy object

ui_elements

NULL or a data frame with the following columns:

  • id: the element identifier

  • ui_type: either "selectable" (several elements can be selected), "button" (action will be triggered on click), "none" (no ui)

  • title: a description of the element to display on mouseover event

Value

the provided proxy object

Examples

if(interactive()){
   from_shiny <- new.env()
   shiny::runApp(system.file(
      "examples", "shiny-anatomogram", package = "bscui"
   ))
   for(n in names(from_shiny)){
      bscui(from_shiny[[n]]) |> print()
   }
}

[Package bscui version 0.1.5 Index]