jit.cellblock- formatting cells with headers
Hello all,
I'm trying to create a theatre playback system using jit.cellblock.
Currently when I click on a cellblock it dumps out row, column and value information. I would like to be able to include a column header in the dump so that I can easily route information based on its header value.
For example I have a header (in cell 1 0) "Dogs" and under it (cell 1 1) I have "beagle". Currently if I click beagle the cellblock dumps "1 1 beagle." Is it possible to somehow get the "Dogs" header in that dump as well so it reads something like "dogs 1 1 beagle"? or just "dogs beagle"?
It would also be useful if this could work for row select dumps as well so that I could get header values for an entire row.
An example of that woud be a dump message like: "0 1 dogs chow cats ceylon cars cadillac" (with Dogs Cats and Cars being the headers)
Maybe syncing two cellblocks together could help somehow but don't know how....
Any thoughts would be greatly appreciated.
Thanks
Matt
Hello Matt,
there are multiple ways to achieve what you want, syncing two cellblocks would work but cellblocks are heavy UI objects so here's one solution with the coll object
hope this helps
léo
Wow thank you so much Leo. That's just what I'm looking for and I would not been able to do this on my own!
Is it possible to also do something like this using the selmode 3 (entire row) attribute so that I can get headers for an entire row?
Thanks again.
Matt
Hello Léo,
its a great solution that you shared... (some times ago).
Thank you!
no need for coll...