setConfig()
Description
Sets configuration of the Toolbar component
Usage
setConfig(config: object): void;
Parameters
config
- (required) an object with Toolbar configurations. See the full list of properties here
Example
const { ToDo, Toolbar } = todo;
const { tasks, users, projects, tags } = getData();
const list = new ToDo("#root", {
tasks,
users,
projects,
});
const toolbar = new Toolbar("#toolbar", {
api: list.api,
});
toolbar.setConfig({
items: ["combo", "menu"]
});