set-search
Description
Fires when searching for cards
Usage
"set-search": ({
value: string,
by?: string
}) => void;
Parameters
The callback of the set-search event can take an object with the following parameters:
value
- (required) the value to searchby
- (optional) the card field for searching
info
For handling the inner events you can use the Event Bus methods
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// subscribe on the "set-search" event
board.api.on("set-search", (obj) => {
console.log(obj.value);
});