Example
Only allow the modification of comment from the same author.
NutrientViewer.load({
isEditableComment: function(comment) {
return comment.creatorName === myCurrentUser.name;
},
});
Type Declaration
Parameters
commentNutrientViewer.Comment
The comment.
Returns
boolean
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