Skip to content

Set default background colors when cell value equals certain string? #2693

Answered by saulpw
chrisrobertsnyc asked this question in Q&A
Discussion options

You must be logged in to vote
TableSheet.colorizers += [CellColorizer(10, 'black on green', lambda s,c,r,v: v == 'HI')]

https://www.visidata.org/docs/colors/ and https://www.visidata.org/docs/api/interface#colors

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chrisrobertsnyc
Comment options

Answer selected by chrisrobertsnyc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants