if (FALSE) {
require(shiny)
require(shinydashboardPlus)
# shinydashboardPlus changed significantly in version 2.0 and has
# different syntax for the element content, here is an example for each
# shinydashboardPlus < 2.0
s1 <- rightSidebarTabContent(id = 1, icon = "desktop", title = "Tab 1 - Plots", active = TRUE,
div(helpText(align = "center", "Sample UI Text"),
selectInput("sample1", "A Select", c("A", "B", "C")) ))
# shinydasboardPlus >= 2.0
s1 <- controlbarMenu(id = 1, selected = "Tab 1 - Plots",
controlbarItem(icon = icon("desktop"), title = "Tab 1 - Plots",
div(helpText(align = "center", "Sample UI Text"),
selectInput("sample1", "A Select", c("A", "B", "C")) )))
# add the above content to the sidebar (periscope functionality)
add_ui_sidebar_right(list(s1), append = FALSE)
}
Run the code above in your browser using DataLab