Skip to content

Commit

Permalink
Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Aug 29, 2024
1 parent b422ebc commit 281233a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/dataviews/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,14 @@ Properties:
- `fields`: the `id` of the fields that are visible in the UI.
- `layout`: config that is specific to a particular layout type:

| Property | Table | Grid | List |
| Properties of `layout` | Table | Grid | List |
| --- | --- | --- | --- |
| `layout.primaryField`: the field's `id` to be highlighted in each layout. It's not hidable. | ✓ | ✓ | ✓ |
| `layout.mediaField`: the field's `id` to be used for rendering each card's media. It's not hiddable. | | ✓ | ✓ |
| `layout.columnFields`: a list of field's `id` to render vertically stacked instead of horizontally (the default). | | ✓ | |
| `layout.badgeFields`: a list of field's `id` to render without label and styled as badges. | | ✓ | |
| `layout.combinedFields`: a list of "virtual" fields that are made by combining others. See "Combining fields" section. | ✓ | | |
| `layout.styles`: additional `width`, `maxWidth`, `minWidth` styles for each field column. | ✓ | | |
| `primaryField`: the field's `id` to be highlighted in each layout. It's not hidable. | ✓ | ✓ | ✓ |
| `mediaField`: the field's `id` to be used for rendering each card's media. It's not hiddable. | | ✓ | ✓ |
| `columnFields`: a list of field's `id` to render vertically stacked instead of horizontally (the default). | | ✓ | |
| `badgeFields`: a list of field's `id` to render without label and styled as badges. | | ✓ | |
| `combinedFields`: a list of "virtual" fields that are made by combining others. See "Combining fields" section. | ✓ | | |
| `styles`: additional `width`, `maxWidth`, `minWidth` styles for each field column. | ✓ | | |

### `onChangeView`: `function`

Expand Down

0 comments on commit 281233a

Please sign in to comment.