Description Usage Arguments Author(s) Examples
Create a gentelella tabSetPanel
1 | tabSetPanel(..., id, right = FALSE)
|
... |
Slot for tabPanel. |
id |
TabSetPanel id. Should be unique. |
right |
If TabSetPanel start from the right side. FALSE by default. |
David Granjon, dgranjon@ymail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | if (interactive()) {
library(shiny)
library(gentelellaShiny)
shinyApp(
ui = gentelellaPageCustom(
gentelellaBody(
tabSetPanel(
id = "tabset1",
tabPanel(
tabName = "Home",
active = TRUE,
"Raw denim you probably haven't heard of
them jean shorts Austin. Nesciunt tofu stumptown
aliqua, retro synth master cleanse. Mustache
cliche tempor, williamsburg carles vegan helvetica.
Reprehenderit butcher retro keffiyeh dreamcatcher synth.
Cosby sweater eu banh mi, qui irure terr."
),
tabPanel(
tabName = "Profile",
active = FALSE,
sliderInput(
"obs",
"Number of observations:",
min = 0,
max = 1000,
value = 500
),
plotOutput("distPlot")
)
)
)
),
server = function(input, output, session) {
output$distPlot <- renderPlot({
hist(rnorm(input$obs))
})
}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.