Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- library(shiny)
- library(shinydashboard)
- library(shinyjs)
- library(shinyWidgets)
- ui <- shinyUI(dashboardPage(
- dashboardHeader(disable = TRUE),
- dashboardSidebar(disable = TRUE),
- dashboardBody(
- fluidRow(
- box(
- searchInput(
- inputId = "search", label = "Enter your text",
- placeholder = "A placeholder",
- btnSearch = icon("search"),
- btnReset = icon("remove"),
- width = "450px"
- )
- ),
- tabBox(
- title = "First tabBox",
- # The id lets us use input$tabset1 on the server to find the current tab
- id = "tabset1", height = "250px",
- tabPanel("Tab1", "First tab content"),
- tabPanel("Tab2", "Tab content 2")
- ),
- tabBox(
- side = "right", height = "250px",
- selected = "Tab3",
- tabPanel("Tab1", "Tab content 1"),
- tabPanel("Tab2", "Tab content 2"),
- tabPanel("Tab3", "Note that when side=right, the tab order is reversed.")
- ),
- tabBox(
- title = "First tabBox",
- # The id lets us use input$tabset1 on the server to find the current tab
- id = "tabset1", height = "250px",
- tabPanel("Tab1", "First tab content"),
- tabPanel("Tab2", "Tab content 2")
- ),
- tabBox(
- side = "right", height = "250px",
- selected = "Tab3",
- tabPanel("Tab1", "Tab content 1"),
- tabPanel("Tab2", "Tab content 2"),
- tabPanel("Tab3", "Note that when side=right, the tab order is reversed.")
- ),
- tabBox(
- title = "First tabBox",
- # The id lets us use input$tabset1 on the server to find the current tab
- id = "tabset1", height = "250px",
- tabPanel("Tab1", "First tab content"),
- tabPanel("Tab2", "Tab content 2")
- ),
- tabBox(
- side = "right", height = "250px",
- selected = "Tab3",
- tabPanel("Tab1", "Tab content 1"),
- tabPanel("Tab2", "Tab content 2"),
- tabPanel("Tab3", "Note that when side=right, the tab order is reversed.")
- )
- )
- )
- ))
- server <- shinyServer(function(input, output, session) {
- })
- shinyApp(ui = ui, server = server)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement