material_sidenav: The material SideNav bar

Description Usage Arguments Examples

Description

The material SideNav bar UI Element

Usage

1
2
material_sidenav(inputId, navlist, logo = NULL, fixed = TRUE,
  width = 300, 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 'badge' (string).

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.

fixed

Logical Should the sidenav be fixed?

width

Integer. The width size of the sizebar

bgcolor

String. The color name for Sidenav 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 Sidenav 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
require(materializer)
material_sidenav(
  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)
  )
)

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