docs(data-table): explain how header keys work

This commit is contained in:
Eric Liu 2022-03-19 10:13:06 -07:00
commit 37db3a7f86

View file

@ -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" },