Colors the selected row in a DT within a shiny app. Call in the ui element of a shiny app

DT_selected_row_colour(colour = "pink")

Arguments

colour

A character vector of rgb,rgba,colour name

Value

A character vector of html style containing the relevant css

Examples

DT_selected_row_colour()
#> <style>table.dataTable tr.selected td, table.dataTable td.selected {
#>                     background-color: pink !important;}
#>       table.dataTable tr.active td, table.dataTable td.active {
#>                     background-color: pink !important;}
#>       </style>
DT_selected_row_colour(colour='blue')
#> <style>table.dataTable tr.selected td, table.dataTable td.selected {
#>                     background-color: blue !important;}
#>       table.dataTable tr.active td, table.dataTable td.active {
#>                     background-color: blue !important;}
#>       </style>