[kanban comments]I need comment edit complete event.

Is there something in the comment that functions like an onAfterEditStop occurring in a datatable?

[onAfterEditStart, onBeforeEditStart]
This event the beginning of the edit.
I need comment edit complete event.

Or as an alternative, can I delete the comment's edit menu?

Written by Google Translate.

Tagged:

Comments

  • Hi @KJW,
    Kanban uses the Comments widget and its API has several events needed for the use-cases.This view can be obtained in Kanban with the getComments method (returns a popup with the needed widget inside). But the comment widget doesn't have an onAfterEditStop event.
    As a solution, you can use onAfterEditStart event , or get the inner textarea and operate with its value, you can refer to it directly with queryView method and check if some existing comment has been edited.
    Please, check the following example
    https://snippet.webix.com/tokza0jh

    Or as an alternative, can I delete the comment's edit menu?

    Also, you can hide "Edit" option via onBeforeShow event:

    commentsView.getMenu().attachEvent("onBeforeShow", function(){
        this.hideItem("edit");
    });
    

    Example:
    https://snippet.webix.com/9j02sw42

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion