Returns a Shiny tags object containing custom CSS styles for DT tables,
following preliminary Rijksoverheid huisstijl.
Arguments
- base_family
Character. Font family to use for table text. Default is "RijksoverheidSansWebText". If not installed, Verdana is used, then Arial, then the first font found on your device, whichever is installed first.
- sorting
Logical. If
TRUE, column headers are moved, to make space for arrows. ifFALSE, right-aligned. Default isFALSE.
See also
Other DT:
ro_dt_table()
Examples
if (interactive()) {
ui <- fluidPage(
ro_dt_theme(sorting = FALSE),
DTOutput("mytable")
)
server <- function(input, output, session) {
output$mytable <- renderDT(datatable(iris, rownames = FALSE, options(list(ordering=FALSE))))
}
shinyApp(ui, server)
}
