opens the editor to change the card details or add a new card
obj | object | the item data that will be edited in the form |
{
view:"button", value:"Add task",
click:() => {
$$("board").showEditor();
}
}
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