editor
Description
Optional. Contains settings for customizing the Kanban editor
Usage
editor?: {
autoSave?: boolean,
debounce?: number,
placement?: "sidebar" | "modal"
};
Parameters
autoSave
- (optional) turns the autosave feature on or offdebounce
- (optional) sets the delay time before autosaving data (effective only when autoSave: true)placement
- (optional) defines where the editor appears. Possible values are:"sidebar"
- shows the editor as a sidebar"modal"
- shows the editor in 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
option was introduced in v1.6
Related samples: Kanban. Opening the editor in a modal window