setEdit()
Description
Enables or disables the Kanban card editor
Usage
setEdit({ cardId: string | number } | null): void;
Parameters
This method accepts either null or an object containing the following property:
cardId- (required) the identifier of the card to be edited
note
To close the editor, simply call setEdit() with null
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// open the editor for a specific card by its ID
board.setEdit({ cardId: 1 });
Change log: The method was introduced in v1.2