From bab73af901c162ad6e8ff46c4254d3184dbd94d4 Mon Sep 17 00:00:00 2001 From: JuanMa Date: Fri, 30 Aug 2024 07:20:52 +0100 Subject: [PATCH] fixed property name for defaultLayouts settings (#64897) --- packages/dataviews/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/dataviews/README.md b/packages/dataviews/README.md index 1d1f62e1032f0c..e217f6af337a4b 100644 --- a/packages/dataviews/README.md +++ b/packages/dataviews/README.md @@ -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 | | --- | --- | --- | --- | @@ -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', }, }, };