IsEditableCommentCallback typedef
IsEditableCommentCallback = _AnonymousFunction_2122676
This callback can be run on individual comments to detect whether the comment can be edited based on its returned boolean.
For more information, see Configuration#isEditableComment
comment: - The comment.
Example:
Only allow the modification of comment from the same author.
```ts
NutrientViewer.load({
isEditableComment: function(comment) {
return comment.creatorName === myCurrentUser.name;
},
});
Implementation
typedef IsEditableCommentCallback = _AnonymousFunction_2122676;