Skip to main content

setSearch()

Description

Looks for the needed cards by the specified parameters

Usage

setSearch({
value: string,
by?: string
}): void;
info

Using this method, you can search for the needed cards by the specified parameters. If you call the setSearch() method without parameters, it will clear the search bar and highlighting of the cards

Parameters

  • value - (required) the value to search
  • by - (optional) the card field for searching

Example

// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// highlight the cards that match the parameters
board.setSearch({ value: "Integration", by: "label" });