API reference: @salmonui/data-grid
DataGridToolbarIteminterface
import type { DataGridToolbarItem } from '@salmonui/data-grid';interface DataGridToolbarItem {
readonly id: string;
readonly label?: string;
readonly icon?: ReactNode;
readonly title?: string;
readonly align?: 'start' | 'center' | 'end';
readonly disabled?: boolean;
readonly render?: (ctx: {
readonly disabled: boolean;
}) => ReactNode;
}
A toolbar item. An object whose id is a built-in id keeps the built-in
behavior (use it to change the label, icon, or alignment of a built-in).
disabled is reactive.
| Name | Signature | Description |
|---|---|---|
id | readonly id: string; | |
labeloptional | readonly label?: string; | Button text; for a |
iconoptional | readonly icon?: ReactNode; | |
titleoptional | readonly title?: string; | Tooltip ( |
alignoptional | readonly align?: 'start' | 'center' | 'end'; | |
disabledoptional | readonly disabled?: boolean; | |
renderoptional | readonly render?: (ctx: {
readonly disabled: boolean;
}) => ReactNode; | Custom content; the item keeps its roving tab stop. |