add_ui_sidebar_advanced: Add UI Elements to the Sidebar (Advanced Tab)

Description Usage Arguments Shiny Usage See Also Examples

View source: R/ui_helpers.R

Description

This function registers UI elements to the secondary (rear-most) tab on the dashboard sidebar. The default name of the tab is Advanced but can be renamed using the tabname argument.

Usage

1
2
3
4
5
add_ui_sidebar_advanced(
  elementlist = NULL,
  append = FALSE,
  tabname = "Advanced"
)

Arguments

elementlist

list of UI elements to add to the sidebar tab

append

whether to append the elementlist to the currently registered elements or replace the currently registered elements completely

tabname

change the label on the UI tab (default = "Advanced")

Shiny Usage

Call this function after creating elements in program/ui_sidebar.R to register them to the application framework and show them on the Advanced tab in the dashboard sidebar

See Also

add_ui_sidebar_basic

add_ui_body

Examples

1
2
3
4
5
6
require(shiny)

s1 <- selectInput("sample1", "A Select", c("A", "B", "C"))
s2 <- radioButtons("sample2", NULL, c("A", "B", "C"))

add_ui_sidebar_advanced(list(s1, s2), append = FALSE)

periscope documentation built on July 8, 2020, 7:18 p.m.