filterParams
packages/ui/src/components/data/resource-view/view-list.tsx
Import
Subpath export:
@marktiderman/genesis-ui/dataimport { filterParams } from "@marktiderman/genesis-ui/data";Components
Auto-generated from TypeScript source via
react-docgen-typescript.filterParams
No declared props.
useViewListParams
The filters, select, enabled and live a screen's options make for a view's list: the viewer's scope, the preset's filter and the screen's own, as provider params. Every view type (the table's `useResourceViewProps`, the board, the calendar) and every custom view (`useViewList`, `useViewBoard`, `useViewCalendarRange`, `<CustomView>`) starts from it, so they ask the same.
| Prop | Type | Default | Description |
|---|---|---|---|
| view* | ResourceView<ResourceContract<any>, any> | — | |
| filter | Readonly<Record<string, Scalar | readonly (string | number)[]>> | — | |
| live | boolean | LiveOptions | — | |
| preset | string | — | |
| resourceOptions | { defaultFilters?: FilterParam[]; select?: string; enabled?: boolean | undefined; live?: boolean | LiveOptions | undefined; } | undefined | — | |
| scoped | boolean | — |
useViewDetailFields
The peek's fields: the view's full column list, drawn like the cells (so `when` hides there too, and the screen's `cells` apply), never every key of the row. Shared by the list and the calendar.
No declared props.