Change background color of readonly columns

570 views
Skip to first unread message

Tim Ryan

unread,
Jun 30, 2015, 11:10:34 AM6/30/15
to handso...@googlegroups.com
My question is very simple. How do I change the background color of any column that is readonly? I tried using the 
readOnlyCellClassName option, and I can change the text color, but not the background.

Thanks

Tim Ryan

unread,
Jul 1, 2015, 8:18:58 AM7/1/15
to handso...@googlegroups.com
I'm answering my own question. I ended up using a renderer for all my readonly columns. This did exactly what I wanted.

Elye Mittelman

unread,
Jul 1, 2015, 10:33:31 AM7/1/15
to handso...@googlegroups.com
Or you can add styles in your css for '.htDimmed' something like 

.handsontable .htDimmed {
   
background-color: red !important;
}
Reply all
Reply to author
Forward
0 new messages