mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
docs(data-table): explain how header keys work
This commit is contained in:
parent
08edef45db
commit
37db3a7f86
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@ components: ["DataTable", "Pagination","Toolbar", "ToolbarContent", "ToolbarSear
|
||||||
|
|
||||||
### Default
|
### Default
|
||||||
|
|
||||||
|
The key value in `headers` corresponds to the key value defined in `rows`.
|
||||||
|
|
||||||
|
For example, the header key `"name"` will use the value of `rows[index].name`.
|
||||||
|
|
||||||
<DataTable
|
<DataTable
|
||||||
headers="{[
|
headers="{[
|
||||||
{ key: "name", value: "Name" },
|
{ key: "name", value: "Name" },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue