Skip to main content

set-search

Description

Triggered when a card search is performed

Usage

"set-search": ({
value: string,
by?: string
}) => void;

Parameters

The callback for the set-search event receives an object containing these parameters:

  • value - (required) the search term
  • by - (optional) the card field to search by
info

To handle internal events, you can use the Event Bus methods

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// listen for the "set-search" event
board.api.on("set-search", (obj) => {
console.log(obj.value);
});