#Svelte cell formatting

3 messages · Page 1 of 1 (latest)

round fractal
#

Hello,

Using Svelte version of TanTable, I am struggling to format a cell with a background color that depends on the cell's value, like you can do with spreadsheets.

I understand the need to define a cell() renderer for the specific column, but I am unclear on how to get it to work. In particular how and where to use flexRender()?

A pointer to an example would be most helpful!
Thanks in advance.

deep roost
#

I only started using table today but my understanding is that you can add the flexRender as a value to cell and pass the component constructor as the first argument and the values as second arguments in an object, I don't think it's typed properly though

dusk mountain
#

Hi, i think this discussion can help i tried it, it should work but as i said in following discussion i still can't make it works properly.
#1042636580243914804