Hi,
I have a text column where user can enter comment. Requirement is to limit cell content to 64 characters, but to display whole comment on hover or in something similar way (tooltip or so).
I wanted to use comment feature, but I am getting error when I am hovering over cell with comment:
Uncaught TypeError: Cannot read property ‘offsetLeft’ of undefined
at C (handsontable.full.min.js:26)
at t.value (handsontable.full.min.js:31)
at t.value (handsontable.full.min.js:31)
at t.value (handsontable.full.min.js:31)
at e. (handsontable.full.min.js:31)
at handsontable.full.min.js:26
at u (handsontable.full.min.js:26)
at e.runLocalHooks (handsontable.full.min.js:26)
at e. (handsontable.full.min.js:31)
at handsontable.full.min.js:26
I have 20 different tabs, each tab has it own handsontable instance. It’s Angular 2 project, but HOT is plain javascript version.
Also, it’s not possible to delete content of the cell on delete.
Here is rendering function for comment cell:
> public comment(instance, td, row, col, prop, value, cellProperties)
> {
> if (value)
> {
> debugger;
> if (value.toString().length > 64)
> {
> let shortComment = value.toString().substr(0, 64) + "...";
> td.innerHTML = shortComment;
> cellProperties.comment = { value: value };
> }
> }
> return td;
> }