tabPanel
tabPanel(title, ..., value = NULL, icon = NULL)
Arguments
title | Display title for tab |
---|---|
... | UI elements to include within the tab |
value | The value that should be sent when tabsetPanel reports
that this tab is selected. If omitted and tabsetPanel has an
id , then the title will be used.. |
icon | Optional icon to appear on the tab. This attribute is only
valid when using a tabPanel within a navbarPage . |
Create a tab panel
Value
A tab that can be passed to tabsetPanel
Description
Create a tab panel that can be included within a tabsetPanel
.
Examples
# Show a tabset that includes a plot, summary, and # table view of the generated distribution mainPanel( tabsetPanel( tabPanel("Plot", plotOutput("plot")), tabPanel("Summary", verbatimTextOutput("summary")), tabPanel("Table", tableOutput("table")) ) )<div class="span8"> <div class="tabbable tabs-above"> <ul class="nav nav-tabs"> <li class="active"> <a href="#tab-7645-1" data-toggle="tab">Plot</a> </li> <li> <a href="#tab-7645-2" data-toggle="tab">Summary</a> </li> <li> <a href="#tab-7645-3" data-toggle="tab">Table</a> </li> </ul> <div class="tab-content"> <div class="tab-pane active" id="tab-7645-1"> <div id="plot" class="shiny-plot-output" style="width: 100% ; height: 400px"></div> </div> <div class="tab-pane" id="tab-7645-2"> <pre id="summary" class="shiny-text-output"></pre> </div> <div class="tab-pane" id="tab-7645-3"> <div id="table" class="shiny-html-output"></div> </div> </div> </div> </div>
See also
tabsetPanel