Cell Units Value Custom Renderer

Tags: #<Tag:0x00007efc6d3c0698>

Hello,

Would it be possible to create a custom cell render for all cells, that displays the value of the cell in accordance to different units based on the input from an external dropdown? For example:

Cell Value: 1,000,000
Cell Render Upon choosing “Millions” in the dropdown: 1M
Cell Render Upon choosing “Thousands” in the dropdown: 1,000K

Greatly appreciate any advice. Thanks.

Hi @mariothomas

Just to clear things out, I want to ask what is your expected input and output?

And answering your first question - yes, you can achieve something like that by custom renderer. You can just divide the input value by desired amount and add a string with “M” or “K” at the end.

Hi @adrian.szymanski - thanks for the note, I was able to use a custom renderer as you described, and then switch renderer using the updateSettings function. Appreciate it!

Great to hear, I’m closing the topic then.