Nutrient Web SDK

ReferenceEventsCommentsCreateEvent

Type Alias CommentsCreateEvent

This event is emitted when new comments are created. The event includes the list of created comments.

Type Alias
Type Signature
type CommentsCreateEvent = NutrientViewer.Immutable.List<NutrientViewer.Comment>

Example

Get the list of created comments.

instance.addEventListener("comments.create", (comments: CommentsCreateEvent) => {
console.log(comments.toJS());
});

See Also