setSearch()
Description
Finds cards based on the specified criteria
Usage
setSearch({
value: string,
by?: string
}): void;
info
This method allows searching for cards using the given parameters. If you call setSearch() without any arguments, it will clear the search input and remove any card highlighting.
Parameters
value- (required) the text to search forby- (optional) the card field to perform the search on
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// highlight the cards that match the parameters
board.setSearch({ value: "Integration", by: "label" });