material_navbar: The material Nav bar

Description Usage Arguments Examples

Description

The material Nav bar UI Element

Usage

1
2
material_navbar(inputId, navlist, logo = NULL, logoPosition = "left",
  tabs = NULL, sidenav = TRUE, bgcolor = "white", color = NULL)

Arguments

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.

Examples

 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"),
)

TuSKan/materializer documentation built on May 17, 2019, 6:35 p.m.