* vtable: row colors based on their object values
@ 2024-04-23 20:36 ijqq via Users list for the GNU Emacs text editor
0 siblings, 0 replies; only message in thread
From: ijqq via Users list for the GNU Emacs text editor @ 2024-04-23 20:36 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
Hello,
I am trying to write a simple interface using the vtable package. I would like the background colour of each row to depend on the value of its underlying object (e.g., the row should have a green background if thefoo field of the object it represents is 1, otherwise it should have a plain white background). I am a beginner in Emacs List and am wondering what the best way to do this is.
The :displayer parameter to the vtable takes the formatted string of the text only so it wouldn't affect the background for the whole row. The :row-colors parameter takes a list and not a function, so I'm a bit stuck on updating it properly. I tried to set :row-colors to be the value of a global variable which is set by my :objects-function function, but now when updating the table, the colours become out of sync.
What is the best general approach?
Thank you
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-23 20:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-23 20:36 vtable: row colors based on their object values ijqq via Users list for the GNU Emacs text editor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).