Skip to content

Commit

Permalink
fixed property name for defaultLayouts settings (#64897)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmaguitar authored Aug 30, 2024
1 parent 520fa41 commit bab73af
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/dataviews/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ Properties:
- `sort`:
- `field`: the field used for sorting the dataset.
- `direction`: the direction to use for sorting, one of `asc` or `desc`.
- `fields`: the `id` of the fields that are visible in the UI.
- `layout`: config that is specific to a particular layout type:

- `fields`: the `id` of the fields that are visible in the UI and the specific order in which they are displayed.
- `layout`: config that is specific to a particular layout type.

| Properties of `layout` | Table | Grid | List |
| --- | --- | --- | --- |
Expand Down Expand Up @@ -300,7 +301,7 @@ For example, this is how you'd enable only the table view type:
const defaultLayouts = {
table: {
layout: {
primaryKey: 'my-key',
primaryField: 'my-key',
},
},
};
Expand Down

0 comments on commit bab73af

Please sign in to comment.