Skip to content

Conversation

@shrektan
Copy link
Collaborator

Closes #723

A minimal repro

library(DT)
tbl = data.frame(
  A = c('a', 'b', '>a', "<b"),
  B = c('red', 'green', 'yellow', 'pink'),
  stringsAsFactors = FALSE
)
datatable(tbl) %>% 
  formatStyle("A", target = "row", backgroundColor = styleEqual(tbl$A, tbl$B))

Copy link
Contributor

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@yihui yihui merged commit 48da657 into master Oct 28, 2019
@yihui yihui deleted the fix723 branch October 28, 2019 18:13
@hjia222
Copy link

hjia222 commented Oct 28, 2019

@shrektan Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

formatStyle SytleEqual condition contains ">" or "<"

4 participants