DS Server

CommentEventCallback Function

Function|Introduced in 30.0

Description

Callback function for a comment related event. ("commentChanged", "commentCreated", "commentDeleted", "commentedTextEntered", "commentedTextLeft" and "commentStateChanged") (see also TXTextControl.addEventListener function)

Syntax

function(<CommentEventArgs> args)

Examples

The following example demonstrates CommentEventCallback in a practical document-editing workflow. Callback function for a comment related event. ("commentChanged", "commentCreated", "commentDeleted", "commentedTextEntered", "commentedTextLeft" and "commentStateChanged") (see also TXTextControl.addEventListener function).

function commentEventCallback(args) {
    console.log("args:", args);
}