shinymaterial (version 0.5.3)

material_side_nav: Create a side-nav that contains UI content

Description

UI content can be placed in side-nav.

Usage

material_side_nav(..., fixed = FALSE, image_source = NULL,
  background_color = NULL)

Arguments

...

The UI elements to place in the side-nav.

fixed

Boolean. Set to TRUE to keep side-nav open on large screens.

image_source

String. The background image file name. Place the image in a folder labeled 'www' at the same level as the application (server.R & ui.R).

background_color

Side-nav background color. Leave blank for the default color. Visit http://materializecss.com/color.html for a list of available colors.

Examples

Run this code
# NOT RUN {
material_side_nav(
  fixed = FALSE,
  image_source = "example_image.jpg",
  background_color = "blue lighten-4",
  shiny::tags$h1("Side-Nav Content")
)
# }

Run the code above in your browser using DataCamp Workspace