Genesis
@beta

useViewBoard

A view's rows as board columns, with moves: ```tsx const board = useViewBoard(tasksView, { filters: useViewListParams({ view: tasksView }).filters }); board.columns.map((c) => <Lane key={c.value} title={c.label} cards={c.items} onDrop={(row) => board.move(row, c.value)} />); ``` Throws when the view has no board field and the options name none, or names one a board can't use (a field without choices).

packages/ui/src/components/data/resource-view/use-view-board.ts

Import
Subpath export: @marktiderman/genesis-ui/data
import { useViewBoard } from "@marktiderman/genesis-ui/data";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

useViewBoard

A view's rows as board columns, with moves: ```tsx const board = useViewBoard(tasksView, { filters: useViewListParams({ view: tasksView }).filters }); board.columns.map((c) => <Lane key={c.value} title={c.label} cards={c.items} onDrop={(row) => board.move(row, c.value)} />); ``` Throws when the view has no board field and the options name none, or names one a board can't use (a field without choices).

No declared props.

ViewBoardColumn

One column: its value, its words, its tone and its cards so far.

No declared props.

ViewBoardConflict

A move that met someone else's change, for ConflictSheet.

No declared props.