Skip to main content

setConfig()

Description

Updates the Toolbar with new configuration settings

Usage

setConfig(config: object): void;

Parameters

  • config - (required) an object containing the Toolbar configuration options. Check out the complete list of properties here
note

Only the parameters provided in the object will be updated.

Example

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