Colors the colour of the peripheral element in a DT within a shiny app. Call in the ui element of a shiny app

DT_peripheral_colour(colour = "pink")

Arguments

colour

A character vector of rgb,rgba,colour name

Value

A character vector of html style tag containing the relevant css

Examples

DT_peripheral_colour()
#> <style>.page-item.active .page-link{
#>     z-index: 3;
#>     color: #fff;
#>     background-color: pink;
#>     border-color: pink;
#> }
#>       .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing,.dataTables_wrapper .dataTables_paginate .paginate_button, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
#>           color: pink !important;
#>       }
#>       
#>     .page-item .page-link {
#>     z-index: 3;
#>     color: rgb(255, 255, 255);
#>     background-color:transparent;
#>     border-color: transparent;
#>     color:pink;
#>       
#>     </style>
DT_peripheral_colour(colour='blue')
#> <style>.page-item.active .page-link{
#>     z-index: 3;
#>     color: #fff;
#>     background-color: blue;
#>     border-color: blue;
#> }
#>       .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing,.dataTables_wrapper .dataTables_paginate .paginate_button, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
#>           color: blue !important;
#>       }
#>       
#>     .page-item .page-link {
#>     z-index: 3;
#>     color: rgb(255, 255, 255);
#>     background-color:transparent;
#>     border-color: transparent;
#>     color:blue;
#>       
#>     </style>