| UINav | R Documentation |
The outermost UI function: use it as ui <- UINav(...). It builds a page
with a navigation bar across the top holding, from left to right, any
logos, the app name, one entry per tab you pass in, and a dark mode switch
on the far right.
UINav(
...,
logoFile = NULL,
appName = NULL,
logoHeight = "40vh",
barColor = NULL,
theme = bslib::bs_theme()
)
... |
Tabs to show in the navigation bar. |
logoFile |
File names of images to show at the left of the navigation
bar, in order. Put the images in the app's |
appName |
App name shown after the logos. If left |
logoHeight |
Height of each logo, as a CSS size. A single value is used for every logo. |
barColor |
Background color of the navigation bar, as a color name or
hex code, for example |
theme |
A |
Pass tabs made with singleTab(), sidebarLevelTab(), biLevelTab() or
triLevelTab(). The navigation bar has the ID "root", so the server can
change tab with bslib::nav_select("root", "<tab title>").
A 'shiny' page to use as the app's UI.
ui <- UINav(
appName = "My App",
barColor = "#005596",
singleTab("Upload",
navUpload("dataUpload", "Upload a CSV")
),
singleTab("Results",
navOutputTable("resultsTable")
)
)
if (interactive()) {
shiny::shinyApp(ui, function(input, output, session) {})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.