Create a navigation list panel that provides a list of links on the left which navigate to a set of tabPanels displayed to the right.
navlistPanel( ..., id = NULL, selected = NULL, well = TRUE, fluid = TRUE, widths = c(4, 8) )
| ... |
|
|---|---|
| id | If provided, you can use |
| selected | The |
| well |
|
| fluid |
|
| widths | Column withs of the navigation list and tabset content areas respectively. |
You can include headers within the navlistPanel by including
plain text elements in the list. Versions of Shiny before 0.11 supported
separators with "------", but as of 0.11, separators were no longer
supported. This is because version 0.11 switched to Bootstrap 3, which
doesn't support separators.
fluidPage( titlePanel("Application Title"), navlistPanel( "Header", tabPanel("First"), tabPanel("Second"), tabPanel("Third") ) )#> <div class="container-fluid"> #> <h2>Application Title</h2> #> <div class="row"> #> <div class="col-sm-4 well"> #> <ul class="nav nav-pills nav-stacked" data-tabsetid="3693"> #> <li class="navbar-brand">Header</li> #> <li class="active"> #> <a href="#tab-3693-2" data-toggle="tab" data-value="First">First</a> #> </li> #> <li> #> <a href="#tab-3693-3" data-toggle="tab" data-value="Second">Second</a> #> </li> #> <li> #> <a href="#tab-3693-4" data-toggle="tab" data-value="Third">Third</a> #> </li> #> </ul> #> </div> #> <div class="col-sm-8"> #> <div class="tab-content" data-tabsetid="3693"> #> <div class="tab-pane active" data-value="First" id="tab-3693-2"></div> #> <div class="tab-pane" data-value="Second" id="tab-3693-3"></div> #> <div class="tab-pane" data-value="Third" id="tab-3693-4"></div> #> </div> #> </div> #> </div> #> </div>