Skip to main content

setEdit()

Description

Switches the Kanban card editor on or off

Usage

setEdit({ cardId: string | number } | null): void;

Parameters

This method accepts either null or an object with the following property:

  • cardId - (required) the ID of the card you want to edit
note

To close the editor, use the setEdit() method with a null argument

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// open the editor for the specified card ID
board.setEdit({ cardId: 1 });

Change log: The method was introduced in v1.2