add_ui_sidebar_basic: Add UI Elements to the Sidebar (Basic Tab)

View source: R/ui_helpers.R

add_ui_sidebar_basicR Documentation

Add UI Elements to the Sidebar (Basic Tab)

Description

This function registers UI elements to the primary (front-most) tab on the dashboard sidebar. The default name of the tab is Basic but can be renamed using the tabname argument. This tab will be active on the sidebar when the user first opens the shiny application.

Usage

add_ui_sidebar_basic(elementlist = NULL, append = FALSE, tabname = "Basic")

Arguments

elementlist

list of UI elements to add to the sidebar tab

append

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

tabname

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

Shiny Usage

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

See Also

add_ui_sidebar_advanced

add_ui_body

Examples

require(shiny)

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

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


neuhausi/periscope documentation built on Nov. 9, 2023, 11:07 a.m.