onBeforeMenuAction

fires before a menu option is chosen for a comment

void onBeforeMenuAction(string id,string|number contextId);
idstringthe ID of the action (default "edit", "remove")
contextIdstring|numberthe ID of the comment, for which the context menu was opened

Example

$$("comments").attachEvent("onBeforeMenuAction",function(id,ctxId){
    webix.message("Comment " + ctxId + " will be " + id + "ed");
    // "Comment 6 will be edited"
});

Related samples

See also
  • Articles
  • Back to top