Skip to main content

setConfig()

Description

Sets new configuration parameters of Toolbar

Usage

setConfig(config: object): void;

Parameters

  • config - (required) the object of the Toolbar configuration. See the full list of properties here
note

The method changes only the parameters you passed.

Example

// create Kanban
const board = new kanban.Kanban("#root", {});
// create Toolbar
const toolbar = new kanban.Toolbar("#toolbar", { api: board.api });
// set new configuration parameters of Toolbar
toolbar.setConfig({
items: ["search", "spacer", "sort"]
});