日本語
@eightkk/vue-weave / core / groupBoardCards
Function: groupBoardCards()
groupBoardCards<
C>(cards,columns,lanes?,options?):TaskBoardGroups<C>
Defined in: src/core/taskBoard.ts:204
Group cards into cells of columns × lanes. Cards keep their cards order inside each cell. Throws an Error for an invalid or duplicate column, lane or card ID and for a card whose column or lane is unknown (or, on a board with lanes, missing), and a RangeError for a WIP limit or minimum that is not a non-negative integer or a minimum above the limit. Without lanes (or with an empty array) the board has a single row of cells and card laneIds are ignored.
options.filter keeps the cards it rejects out of cells[].cards. Positions, indices and WIP states still look at all cards, so a proposal built from the filtered view stays valid for the full cards array. A filter that is not a function throws a TypeError.
Type Parameters
C
C extends TaskBoardCard<unknown>
Parameters
cards
readonly C[]
columns
readonly TaskBoardColumn[]
lanes?
readonly TaskBoardLane[]
options?
filter?
(card) => boolean