Skip to main content

(Toolbar) items

Description

Optional. An array of controls arranged in the toolbar of Kanban

Usage

items?: [
"search",
"controls",
custom_control // string or function
];

Parameters

In the items array you can specify the following parameters:

  • "search" - (optional) a search bar
  • "controls" - (optional) controls for adding the columns and rows
  • custom_control - (optional) custom control. Here you can specify the custom control(s) both as a string or function. See the Customization section

Example

const board = new kanban.Kanban("#root", {
columns,
cards,
rows
});

new kanban.Toolbar("#toolbar", {
api: board.api,
items: [
"search",
"controls"
]
});

Related articles: Configuration and Customization

Related sample: Kanban. Custom toolbar