onAfterAdd

fires after a comment has been added

void onAfterAdd(number id,number index){ ... };

Parameters

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