Hi,
I need to make Comments readOnly in some specific conditions (cell based).
I found setReadOnlyState(state)
in the Comments documentation but can’t make it work.
As a translation C.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT
exists in languages I guess it’s possible.
I can disable the contextMenu comment options but then the comments are not accessible.
Another option is to use
document.getElementsByClassName("htCommentTextArea")[0].readOnly = true;
but it’s tricky if using multiple HOT instances …
Does someone have a working example using setReadOnlyState or a way to set Comments to readOnly ?
Thanks,
Olivier