onBeforeMenuAction of ui.comments, Events Webix Docs

fires before a menu option is chosen for a comment

void onBeforeMenuAction(string id,string|number contextId);

id

stringthe ID of the action (default "edit", "remove") contextId
string|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