onAfterAdd

fires after a comment has been added

void onAfterAdd(number id,number index);
idnumberthe ID of a comment
indexnumberthe order of the comment within the comment history

Example

$$("comments").attachEvent("onAfterAdd",function(id,index){
    webix.message("New comment is added at " + index + " position");
});

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.