mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
feat(data-table): pass row index, cell index to "cell" slot (#1086)
This commit is contained in:
parent
34affd851a
commit
3b70a35df6
4 changed files with 30 additions and 13 deletions
7
types/DataTable/DataTable.svelte.d.ts
vendored
7
types/DataTable/DataTable.svelte.d.ts
vendored
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue