setConfig()
Description
Updates the Toolbar with new configuration settings.
Usage
setConfig(config: object): void;
Parameters
config- (required) an object containing the Toolbar configuration. Check out the full list of properties here
note
Only the parameters you provide 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
toolbar.setConfig({
items: ["search", "spacer", "sort"]
});