Repository navigation
Replies: 1 comment
|
Inside a column's import type { Column } from 'react-data-grid';
type Row = { id: number; title: string };
const columns: readonly Column<Row>[] = [
{ key: 'id', name: 'ID' },
{
key: 'title',
name: 'Title',
renderHeaderCell({ column }) {
return <span>{column.name} — index {column.idx}</span>;
}
}
];You do not need to add The relationship is visible in the v7 types: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
i want to know, How to get column index in header cell?
All reactions