Skip to content

Commit

Permalink
color update
Browse files Browse the repository at this point in the history
  • Loading branch information
jarochi committed Jul 30, 2024
1 parent 23f5432 commit 132bf4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,12 @@ datatable(dat, extensions = c('Buttons', 'FixedColumns', 'FixedHeader', 'ColReor
keys = TRUE, #KeyTable
# lengthMenu = list(25, 50, 75, 100, 125, 150),
headerCallback = JS(headerCallback))) %>%
formatStyle(c("Database", "Last updated"),
formatStyle(c("Database"),
backgroundColor = '#d6edff') %>%
formatStyle(c("Current status"),
backgroundColor = styleEqual(c("Active", "Non-active"), c('#d6edff', 'gray'), default = '#d6edff'))
backgroundColor = styleEqual(c("Active", "Non-active"), c('#d6edff', 'gray'), default = '#d6edff')) %>%
formatStyle(c("Last updated"),
backgroundColor = styleEqual(c(NA, ""), c('gray', 'gray'), default = '#d6edff'))
```
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.12.1/css/jquery.dataTables.css">
Expand Down
Loading

0 comments on commit 132bf4b

Please sign in to comment.