feat(data-table): pass row index, cell index to "cell" slot (#1086)

This commit is contained in:
metonym 2022-02-11 07:13:55 -08:00 committed by GitHub
commit 3b70a35df6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 13 deletions

View file

@ -180,7 +180,12 @@ export default class DataTable extends SvelteComponentTyped<
},
{
default: {};
cell: { row: DataTableRow; cell: DataTableCell };
cell: {
row: DataTableRow;
cell: DataTableCell;
rowIndex: number;
cellIndex: number;
};
["cell-header"]: { header: DataTableNonEmptyHeader };
description: {};
["expanded-row"]: { row: DataTableRow };