R/themes.R

Defines functions read_tabulator_theme

read_tabulator_theme <- function(
    theme = c("midnight", "modern", "simple", "site", "bootstrap3", "bootstrap4", "bootstrap5", "bulma", "materialize", "semanticui")) {
  theme <- match.arg(theme)
  file_name <- system.file(
    glue::glue("htmlwidgets/libs/tabulator/tabulator_{theme}.min.css"),
    package = "rtabulator"
  )
  return(readr::read_file(file_name))
}

Try the rtabulator package in your browser

Any scripts or data that you put into this service are public.

rtabulator documentation built on Sept. 23, 2024, 5:11 p.m.