Dear Handsontable,
I’m trying to create cells with read-only comments with this:
cells = [
{ row: 2, col: 2, comment: { value: ‘Some comment’, readOnly: true } },
{ row: 3, col: 2, comment: { value: ‘More comments’, readOnly: true } }
];
How do I also define these cell background color? Is there some convenient way like:
cells = [
{ row: 2, col: 2, comment: { value: ‘Some comment’, readOnly: true }, background-color: ‘red’ },
{ row: 3, col: 2, comment: { value: ‘More comments’, readOnly: true } }
];
Really thank for your help!
Hey @gumanh94
I recommend using classes to pass CSS settings. Here is an example of cell
method as I see that you prefer the object syntax https://jsfiddle.net/q8eu9t6p/
Thank u so much!
You’re welcome, I think that we can close the issue.
If you’d have any other questions please feel free to open a new ticket.