View source: R/sortableTabsetPanel.R
| sortableTabsetPanel | R Documentation | 
Create a tabset that contains shiny::tabPanel elements. The tabs are
sortable by drag and drop. In addition to the activated tab title stored in
input$<id>, the server will also receive the order of tabs in
input$<id>_order.
sortableTabsetPanel(
  ...,
  id = NULL,
  selected = NULL,
  type = c("tabs", "pills", "hidden"),
  header = NULL,
  footer = NULL
)
... | 
 
  | 
id | 
 If provided, you can use   | 
selected | 
 The   | 
type | 
  | 
header | 
 Tag or list of tags to display as a common header above all tabPanels.  | 
footer | 
 Tag or list of tags to display as a common footer below all tabPanels  | 
A tabset that can be passed to shiny::mainPanel
shiny::tabsetPanel, sortableRadioButtons, sortableCheckboxGroupInput, sortableTableOutput
## Only run this example in interactive R sessions
if (interactive()) {
  shinyApp(
    ui = fluidPage(
      sortableTabsetPanel(
        id = "tabs",
        tabPanel(title = "A", "AAA"),
        tabPanel(title = "B", "BBB"),
        tabPanel(title = "C", "CCC")
      ),
      verbatimTextOutput("order")
    ),
    server = function(input, output) {
      output$order <- renderPrint({input$tabs_order})
    }
  )
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.