showEditor

opens the editor to change the card details or add a new card

void showEditor( [object obj] );

Parameters

objobjectthe item data that will be edited in the form

Example

{
    view:"button", value:"Add task",
    click:() => {
        $$("board").showEditor();
    }
}

Related samples

Details

Without any parameters, the method opens the empty editor form that will add a new card to Kanban board once the input is saved. If you want to use the editor to edit a card, pass the data item to it:

{
    view:"button", value:"Edit task",
    click:() => {
        const card = $$("board").getItem(getSelectedId());
        if (card)
            $$("board").showEditor(card);
        else
            webix.message("Select a card","error");
    }
}
Back to top