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

DT_hover_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_hover_row_colour()
#> <style>table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
#>                                   background-color: pink !important;}</style>
DT_hover_row_colour(colour='blue')
#> <style>table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
#>                                   background-color: blue !important;}</style>