# NOT RUN {
data <- MASS::road[11:17, ]
## By default, the maximum value is bold with a green font color
reactable(data,
defaultColDef = colDef(
style = highlight_max(data)))
## Assign a different font color
reactable(data,
defaultColDef = colDef(
style = highlight_max(data,
font_color = "red")))
## Highlight the background of the cell for the maximum value in each column
reactable(data,
defaultColDef = colDef(
style = highlight_max(data,
highlighter = "yellow")))
# }
Run the code above in your browser using DataLab