ReferenceOnCommentCreationStartCallback
Type Alias OnCommentCreationStartCallback
Type Alias
Type Signature
Example
Set default text of a Comment
NutrientViewer.load({
onCommentCreationStart: comment => comment.set('text', { format: 'xhtml', value: '<p>This comment has a default value</p>' })
// ...
});
Type Declaration
Parameters
commentNutrientViewer.Comment
The comment.
You can programmatically modify the properties of the comment just before it is created.