Build a shinymaterial page.
material_page(
...,
title = "",
nav_bar_fixed = FALSE,
nav_bar_color = NULL,
background_color = "grey lighten-4",
font_color = NULL,
include_fonts = FALSE,
include_nav_bar = TRUE,
include_icons = FALSE,
materialize_in_www = FALSE,
primary_theme_color = NULL,
secondary_theme_color = NULL
)
The UI elements to place in the page.
String. The title of the page.
Boolean. Should the nav bar remain fixed on the screen?
Color of the nav bar. Leave blank for the default color. Visit https://materializecss.com/color.html for a list of available colors.
Page background color. Leave blank for the default color. Visit https://materializecss.com/color.html for a list of available colors.
String. The title font color. Leave blank for the default color. Visit https://materializecss.com/color.html for a list of available colors. Title color requires using word forms of colors (e.g. "deep-purple"). Also, lighten or darken effects do not work on title colors.
Boolean. Should the material font files be included? (This will place the font sources in a directory 'www', at the same location as the app code.)
Boolean. Should the material nav bar be included?
Boolean. Should the material icon files be included? (This will place the font sources in a directory 'www', at the same location as the app code.)
Boolean. Should the app look for the materialize library in the 'www' folder? E.g. www/css/materialize.min.css & www/js/materialize.min.js (Default to FALSE - which will look in the package library folder)
Primary theme color (use hex code, e.g. '#e57373'). Visit https://materializecss.com/color.html for a list of material hex codes.
Secondary theme color (use hex code, e.g. '#26a69a'). Visit https://materializecss.com/color.html for a list of material hex codes.
# NOT RUN {
material_page(
title = "Example Title",
nav_bar_fixed = TRUE,
nav_bar_color = "red lighten-2",
background_color = "blue lighten-4",
shiny::tags$h1("Page Content")
)
# }
Run the code above in your browser using DataLab