how to hide comment in office js?

how to hide comment in office js?
0

Upvotes

Upvote

 Jan 25 2022
0 Comments 
New

I am developing an add-in office js using react which contain many commented cell.

comment contains JSON stringify eg const emp={ id :1,name:"XYZ",department:{did:"d1",dname:"Eduction"}} etc.

so when the user selected cells that contain comments and parse(using JSON parse) to the actual object and display in Add-in (task pane) it can be a checkbox, dropdown, text box, etc it auto-selection.

I successfully create a comment but what happens to many comments? it displays horrible on cell or on hover it displays. I want to hide this comment using office js but can't find a similar one in the Microsoft Office document.

Screenshot_1.png

Screenshot.png