tabsetPanel: Create an advanced tabset

View source: R/tabs.R

tabsetPanelR Documentation

Create an advanced tabset

Description

Advanced tabset panel with styles and features

Usage

tabsetPanel(
  ...,
  type = c("default", "pills", "clean", "jPills", "justified"),
  border = TRUE,
  justified = FALSE,
  position = c("left", "end", "center")
)

Arguments

...

Content of the tabset, created using the tabPanel for each individual item

type

Type of tabset to create, choices include "default","pills","clean","jPills","justified"

border

Include a board for the tabset, TRUE or FALSE

justified

Justify tab headers, TRUE or FALSE

position

position of the tabs, choices include "left","end","center"

Value

An HTML containing elements of a tabset to be embedded in a page

Note

Many examples exist for the tabset, fid them using the package load.example function

Examples


if (interactive()) {
  library(shiny)
  library(nextGenShinyApps)
  tab2 <- tabPanel("Summary", "SAMPLE nunc.")
  tab3 <- tabPanel("Tab 3", "aoreet sit amet.")
  tab4 <- tabPanel("Tab 4", "Vulputate pulvinar")


  shiny::shinyApp(
    ui = fluidPage(
      style = "8",
      custom.bg.color = "rgb(110,134,032)",
      sidebar = NULL,
      header = NULL,
      tabsetPanel(
        tab2,
        tab3,
        type = "pills",
        justified = TRUE
      )
    ),
    server = function(input, output) {
    }
  )
}



nextGenShinyApps documentation built on Sept. 11, 2024, 7:38 p.m.