diff --git a/docs/src/pages/components/DataTable.svx b/docs/src/pages/components/DataTable.svx index fe68f893..0df89167 100644 --- a/docs/src/pages/components/DataTable.svx +++ b/docs/src/pages/components/DataTable.svx @@ -1139,6 +1139,10 @@ Use `nonExpandableRowIds` to specify the ids for rows that should not be expanda +### Expandable (zebra styles) + + + ### Expandable (compact size) + import { DataTable } from "carbon-components-svelte"; + + + + + + {JSON.stringify(row, null, 2)} + + + diff --git a/src/DataTable/DataTable.svelte b/src/DataTable/DataTable.svelte index 6f9ff031..dc180328 100644 --- a/src/DataTable/DataTable.svelte +++ b/src/DataTable/DataTable.svelte @@ -356,6 +356,7 @@ {#each sorting ? displayedSortedRows : displayedRows as row, i (row.id)}
+ {JSON.stringify(row, null, 2)} +