API reference: @salmonui/pivot-table
PivotToolbarIteminterface
import type { PivotToolbarItem } from '@salmonui/pivot-table';interface PivotToolbarItem {
readonly id: string;
readonly label?: ReactNode | undefined;
readonly render?: (() => ReactNode) | undefined;
readonly onClick?: (() => void) | undefined;
readonly disabled?: boolean | undefined;
}
| Name | Signature | Description |
|---|---|---|
id | readonly id: string; | |
labeloptional | readonly label?: ReactNode | undefined; | |
renderoptional | readonly render?: (() => ReactNode) | undefined; | Custom content; the item is then rendered as is. |
onClickoptional | readonly onClick?: (() => void) | undefined; | |
disabledoptional | readonly disabled?: boolean | undefined; |