Skip to content

Function: toggleCommentMode() ​

ts
function toggleCommentMode(comment): Comment;

Toggle comment mode between collapsed and expanded

Parameters ​

comment ​

Comment

Comment to toggle

Returns ​

Comment

Updated comment with toggled mode