API reference: @salmonui/data-grid
DataGridRowElementPropsinterface
import type { DataGridRowElementProps } from '@salmonui/data-grid';interface DataGridRowElementProps {
role: 'row';
'aria-rowindex': number;
className: string;
style?: CSSProperties;
'data-row-id': RowId;
'data-row-index': number;
'aria-selected'?: boolean;
'data-expanded'?: 'true' | 'false';
'aria-level'?: number;
'aria-posinset'?: number;
'aria-setsize'?: number;
'aria-expanded'?: boolean;
'aria-busy'?: boolean;
'data-alt'?: '';
ref?: Ref<HTMLDivElement>;
[key: `data-${string}`]: string | number | boolean | undefined;
}
Props a custom row must spread onto its role="row" element.
| Name | Signature | Description |
|---|---|---|
role | role: 'row'; | |
aria-rowindex | 'aria-rowindex': number; | |
className | className: string; | |
styleoptional | style?: CSSProperties; | |
data-row-id | 'data-row-id': RowId; | |
data-row-index | 'data-row-index': number; | |
aria-selectedoptional | 'aria-selected'?: boolean; | |
data-expandedoptional | 'data-expanded'?: 'true' | 'false'; | Rows with a detail row or child grid: |
aria-leveloptional | 'aria-level'?: number; | Tree mode ( |
aria-posinsetoptional | 'aria-posinset'?: number; | |
aria-setsizeoptional | 'aria-setsize'?: number; | |
aria-expandedoptional | 'aria-expanded'?: boolean; | |
aria-busyoptional | 'aria-busy'?: boolean; | |
data-altoptional | 'data-alt'?: ''; | |
refoptional | ref?: Ref<HTMLDivElement>; |