tabPanel.Rd
tabsetPanel_dsfr
tabsetPanel_dsfr(id, ...)
tabPanel_dsfr(id, title, content)
html
if (interactive()){
library(shiny)
shinyApp(
ui = fluidPage_dsfr(
tabsetPanel_dsfr(
"coucou",
tabPanel_dsfr(
id = "tab1",
title = "Une prems tab",
content = tagList(
h3("Coucou"),
plotOutput("plot")
)
),
tabPanel_dsfr(
id = "tab2",
title = "Une deuxieme tab",
content = tagList(
h3("Salut"),
plotOutput("plot2")
)
)
)
),
server = function(input, output) {
output$plot <- renderPlot({
plot(cars)
})
output$plot2 <- renderPlot({
plot(iris)
})
}
)
}