You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`primaryField`: the field's `id` to be highlighted in each layout. It's not hidable. | ✓ | ✓ | ✓ |
187
+
|`mediaField`: the field's `id` to be used for rendering each card's media. It's not hiddable. || ✓ | ✓ |
188
+
|`columnFields`: a list of field's `id` to render vertically stacked instead of horizontally (the default). || ✓ ||
189
+
|`badgeFields`: a list of field's `id` to render without label and styled as badges. || ✓ ||
190
+
|`combinedFields`: a list of "virtual" fields that are made by combining others. See "Combining fields" section. | ✓ |||
191
+
|`styles`: additional `width`, `maxWidth`, `minWidth` styles for each field column. | ✓ |||
189
192
190
193
### `onChangeView`: `function`
191
194
@@ -307,6 +310,8 @@ const defaultLayouts = {
307
310
};
308
311
```
309
312
313
+
The `defaultLayouts` property should be an object that includes properties named `table`, `grid`, or `list`. Each of these properties should contain a `layout` property, which holds the configuration for each specific layout type. Check [here](#properties-of-layout) the full list of properties available for each layout's configuration
314
+
310
315
### `onChangeSelection`: `function`
311
316
312
317
Callback that signals the user selected one of more items, and takes them as parameter. So far, only the `list` view implements it.
@@ -331,8 +336,8 @@ Each "virtual field", has to provide an `id` and `label` (optionally a `header`
331
336
332
337
Additionally, they need to provide:
333
338
334
-
-`children`: a list of field's `id` to combine
335
-
-`direction`: how should they be stacked, `vertically` or `horizontally`
339
+
-`children`: a list of field's `id` to combine
340
+
-`direction`: how should they be stacked, `vertically` or `horizontally`
336
341
337
342
For example, this is how you'd define a `site` field which is a combination of a `title` and `description` fields, which are not displayed:
0 commit comments