Context menu : set cell background color

Tags: #<Tag:0x00007fd2cca4ea88>


I’d like to set the background color of a group of selected cells using the contextual menu.

Please find my demo here :

My code is based on the HOT documentation and some examples found on this forum. Best solution is to use the className defined in the CSS. Log in the console shows the correct cells should be updated by calling the setCellMeta method, but it’s not working…

Any clue ?

Thanks a lot for having a look at this.

Hey Caroline,

the cells methods overwrites the setCellMeta as it is called after setCellMeta.
What you can do is to add a condition to cells to avoid changing cells with a predefined class.

Hey Caroline,

Did that help?

Please open a new topic if needed. I’m closing this one as there’s no reply.