When clicking an button (outside of the table) I’d like the selected cells to change background colors. I previously was using this:
$('.handsontable td.current, .handsontable td.highlight').css('background-color', color);
This isn’t the correct method, as it is reset from other operations. What is the best way to either set a class, or apply the styles directly to the td?
I’ve also tried hot.getSelected()
and hot.getSelectedRange
but I don’t know how to use this data to apply a class against, as it outputs indices.