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
Copy file name to clipboardExpand all lines: packages/dataviews/CHANGELOG.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,13 @@
6
6
7
7
- Simplify field normalization and types. [#73387](https://github.com/WordPress/gutenberg/pull/73387)
8
8
- DataViews table layout: make checkboxes permanently visible when bulk actions are available. [#73245](https://github.com/WordPress/gutenberg/pull/73245)
9
-
- Documentation: surface better the `type` property in the documentation. [#73349](https://github.com/WordPress/gutenberg/pull/73349)
10
9
- DataViews: Make sticky elements (table headers, footer, actions column) inherit background colors from parent container. This allows DataViews instances to seamlessly adapt to containers with custom background colors. [#73240](https://github.com/WordPress/gutenberg/pull/73240)
11
10
- DataViews table layout: only apply hover styles when bulk actions are available. [#73248](https://github.com/WordPress/gutenberg/pull/73248)
12
-
- Improve docs for Edit component. [#73202](https://github.com/WordPress/gutenberg/pull/73202)
13
-
- Field API: introduce the `format` prop to format the `date` field type. [#72999](https://github.com/WordPress/gutenberg/pull/72999)
14
11
- DataViews: add support for activity layout. [#72780](https://github.com/WordPress/gutenberg/pull/72780)
12
+
- Field API: introduce the `format` prop to format the `date` field type. [#72999](https://github.com/WordPress/gutenberg/pull/72999)
- `density`: one of `comfortable`, `balanced`, or `compact`. Configures the size and spacing of the layout.
237
+
- `enableMoving`: whether the table columns should display moving controls.
238
+
- `styles`: additional `width`, `maxWidth`, `minWidth`, `align` styles for each field column.
230
239
231
240
**For column alignment (`align` property), follow these guidelines:**
232
241
Right-align whenever the cell value is fundamentally quantitative—numbers, decimals, currency, percentages—so that digits and decimal points line up, aiding comparison and calculation. Otherwise, default to left-alignment for all other types (text, codes, labels, dates).
233
242
243
+
`grid` and `pickerGrid` layout:
244
+
245
+
- `badgeFields`: a list of field's `id` to render without label and styled as badges.
246
+
- `previewSize`: a `number` representing the size of the preview.
247
+
248
+
`list` layout:
249
+
250
+
- None
251
+
252
+
`activity` layout:
253
+
254
+
- `density`: one of `comfortable`, `balanced`, or `compact`. Configures the size and spacing of the layout.
255
+
256
+
234
257
#### `onChangeView`: `function`
235
258
236
259
Callback executed when the view has changed. It receives the new view object as a parameter.
0 commit comments