API reference: @salmonui/pivot-table
PivotFieldListcomponent
import { PivotFieldList } from '@salmonui/pivot-table';function PivotFieldList<Row = unknown>(props: PivotFieldListProps<Row>): ReactNode;
The field list. Bind it to the same store as the table: <PivotFieldList pivot={pivot} />.
Props: PivotFieldListProps
| Name | Signature | Description |
|---|---|---|
pivot | readonly pivot: PivotController<Row>; | |
deferUpdateoptional | readonly deferUpdate?: boolean | undefined; | Edit a draft model and commit it with Apply. |
searchableoptional | readonly searchable?: boolean | undefined; | Field search box. Default true. |
fieldOrderoptional | readonly fieldOrder?: 'none' | 'asc' | 'desc' | readonly string[] | undefined; | Order of the field list: |
aggregateOptionsoptional | readonly aggregateOptions?: readonly PivotAggregate[] | undefined; | |
localeTextoptional | readonly localeText?: PivotLocaleText | undefined; | |
onDoneoptional | readonly onDone?: (() => void) | undefined; | Called after Apply or Cancel (a popup closes itself). |
classNameoptional | readonly className?: string | undefined; | |
styleoptional | readonly style?: CSSProperties | undefined; | |
aria-labeloptional | readonly 'aria-label'?: string | undefined; |