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