Get classname

Tags: #<Tag:0x00007f8b1d5ffaf0>

Can i get the className of a cell?

I’m setting the background color of a cell using setCellMeta by specifying a style yellow. Later i want to get the classname of all cells.

I tried getcellmeta(x,y).className, but it is showing undefined.

Also, how can i check if a particular class exists in className

Thank you

Hey @prasanth.sivakumar

you can use getCell method instead. Here is an example that you can try out by yourself https://jsfiddle.net/L03pn27g/

Thank you Aleksanrda, this worked for me… !

Great. Thank you for confirmation.
I guess that we can close the issue.