Description Usage Arguments Examples
View source: R/dashboardNavbar.R
Create a Bootstrap 4 user profile.
1 2 3 4 5 6 7 8 9 |
... |
Body content. |
name |
User name. |
src |
User profile picture. |
title |
A title. |
subtitle |
A subtitle. |
footer |
Footer is any. |
status |
Ribbon status: "primary", "danger", "success", "warning", "info" and "secondary". |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | if (interactive()) {
library(shiny)
library(bs4Dash)
shinyApp(
ui = dashboardPage(
navbar = dashboardHeader(
rightUi = bs4UserMenu(
name = "Divad Nojnarg",
status = "primary",
src = "https://adminlte.io/themes/AdminLTE/dist/img/user2-160x160.jpg",
title = "bs4Dash",
subtitle = "Author",
footer = p("The footer", class = "text-center"),
"This is the menu content."
)
),
sidebar = dashboardSidebar(),
body = dashboardBody(),
title = "bs4UserMenu"
),
server = function(input, output) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.