Skip to main content

editor

Description

Optional. An object of settings for configuring the Kanban editor

Usage

editor?: {
autoSave?: boolean,
debounce?: number,
placement?: "sidebar" | "modal"
};

Parameters

  • autoSave - (optional) enables/disables an autosave mode of editor
  • debounce - (optional) time of delay of autosaving data (works with the autoSave: true parameter only)
  • placement - (optional) specifies the editor placement. You can set the following values:
    • "sidebar" - displays the editor as a sidebar
    • "modal" - displays the editor as a modal window

Default config

editor: {
debounce: 100,
autoSave: true,
placement: "sidebar"
}

Example

new kanban.Kanban("#root", {
columns,
cards,
editor: {
autoSave: true,
debounce: 2000,
placement: "modal"
}
// other parameters
});

Change log: The placement parameter was added in v1.6

Related samples: Kanban. Opening the editor in a modal window