Learn R Programming

bscui (version 0.1.6)

add_bscui_element: Add an SVG element to the UI

Description

Add an SVG element to the UI

Usage

add_bscui_element(proxy, id, svg_txt, ui_type = NULL, title = NULL)

Value

the provided proxy object

Arguments

proxy

a bscui_Proxy object

id

the identifier of the element to add (will replace the id attribute of the provided svg if any)

svg_txt

a character with SVG code of one element and its children

ui_type

either "selectable", "button" or "none". If NULL (default), the element won't be available as UI

title

a description of the element to display on mouseover event

Examples

Run this code
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()
   }
}

Run the code above in your browser using DataLab