Description Usage Arguments Examples
The material Nav bar UI Element
1 2 | material_navbar(inputId, navlist, logo = NULL, logoPosition = "left",
tabs = NULL, sidenav = TRUE, bgcolor = "white", color = NULL)
|
inputId |
String. The input identifier used to access the value. |
navlist |
list. The nav bar element list. The list need to contain a 'target' element and in adition could contain 'name' (string), 'icon' (string), 'active' (logical) and content (tagList). |
logo |
list. The nav bar logo element list. The list need to contain a 'target' element and in adition could contain 'name' (string), 'icon' (string) or any tagList elements. |
logoPosition |
String. The logo position in the nav bar. Values should be "left", "right". |
tabs |
material_tabs. A material tabs could be included in nav bar. |
sidenav |
Logical. A sidebar should be created when collapsed? |
bgcolor |
String. The color name for Navbar backgroud. Leave empty for 'white' color. Visit http://materializecss.com/color.html for a list of available colors. |
color |
String. The color name for links and icons in Navbar. Leave empty for the 'teal lighten-1' color. Visit http://materializecss.com/color.html for a list of available colors. |
1 2 3 4 5 6 7 8 9 10 11 | require(materializer)
material_navbar(
inputId = "example_navbar",
navlist = list(
c(target = "lisk_1.html", name = "One"),
c(target = "lisk_2.html", name = "Two"),
c(target = "lisk_3.html", name = "Three", icon = "cloud"),
c(target = "lisk_4.html", icon = "alarm", active = TRUE)
),
logo = c(target = "index.html", name = "Logo", icon = "accessibility"),
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.