set-search
Description
Triggered when a search is performed on cards
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 termby- (optional) the card field to search within
info
To work with internal events, you can use the Event Bus methods
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// listen to the "set-search" event
board.api.on("set-search", (obj) => {
console.log(obj.value);
});