Description Usage Arguments Details Examples
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.
1 2 |
... |
|
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; you can include separators by
including "——" (any number of dashes works).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(shiny)
fluidPage(
titlePanel("Application Title"),
navlistPanel(
"Header",
tabPanel("First"),
tabPanel("Second"),
"-----",
tabPanel("Third")
)
)
|
You probably do not want to attach this package (with library() or require()). Instead, you should use shinybootstrap2::withBootstrap2(). You can hide this message with suppressPackageStartupMessages().
Attaching package: 'shiny'
The following objects are masked from 'package:shinybootstrap2':
animationOptions, basicPage, bootstrapPage, checkboxGroupInput,
checkboxInput, column, dataTableOutput, dateInput, dateRangeInput,
fixedPage, fixedRow, fluidPage, fluidRow, headerPanel, icon,
mainPanel, navbarPage, navlistPanel, numericInput, pageWithSidebar,
radioButtons, selectInput, selectizeInput, sidebarLayout,
sidebarPanel, sliderInput, submitButton, textInput, titlePanel,
updateCheckboxGroupInput, updateRadioButtons, updateSliderInput,
verticalLayout
<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="3160">
<li class="navbar-brand">Header</li>
<li class="active">
<a href="#tab-3160-2" data-toggle="tab" data-value="First">First</a>
</li>
<li>
<a href="#tab-3160-3" data-toggle="tab" data-value="Second">Second</a>
</li>
<li class="navbar-brand">-----</li>
<li>
<a href="#tab-3160-5" data-toggle="tab" data-value="Third">Third</a>
</li>
</ul>
</div>
<div class="col-sm-8">
<div class="tab-content" data-tabsetid="3160">
<div class="tab-pane active" data-value="First" id="tab-3160-2"></div>
<div class="tab-pane" data-value="Second" id="tab-3160-3"></div>
<div class="tab-pane" data-value="Third" id="tab-3160-5"></div>
</div>
</div>
</div>
</div>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.