From c09075f754f257ef4e912c324932a86f807d4ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Wed, 29 Nov 2023 15:11:54 +0100 Subject: [PATCH] DataViews: document `view.layout` (#56637) --- packages/edit-site/src/components/dataviews/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/dataviews/README.md b/packages/edit-site/src/components/dataviews/README.md index 20e3fe7ff9165..9f0c7a61087c9 100644 --- a/packages/edit-site/src/components/dataviews/README.md +++ b/packages/edit-site/src/components/dataviews/README.md @@ -64,7 +64,9 @@ Example: - `operator`: which type of filter it is. Only `in` available at the moment. - `value`: the actual value selected by the user. - `hiddenFields`: the `id` of the fields that are hidden in the UI. -- `layout`: ... +- `layout`: config that is specific to a particular layout type. + - `mediaField`: used by the `grid` layout. The `id` of the field to be used for rendering each card's media. + - `primaryField`: used by the `grid` layout. The `id` of the field to be used for rendering each card's title. ### View <=> data