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
{{ message }}
Repository navigation
Commit 8b27675
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: content/docs/references/ui/component.mdx
+1-20Lines changed: 1 addition & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -692,7 +692,7 @@ Sort field and direction pair
692
692
|**title**|`string \| Record<string, string>`| optional | Fallback for `label` (the renderer reads `label \|\| title`) |
693
693
|**description**|`string \| Record<string, string>`| optional | One line of help text drawn above the grid's rows — a string, or an inline locale map resolved against the display locale |
694
694
|**emptyState**|`{ title?: string \| Record<string, string>; message?: string \| Record<string, string>; icon?: string }`| optional | What the grid draws instead of an empty table: `{ title, message, icon }` — the list view's own empty-state shape |
695
-
|**columns**|`string[] \| { field: string; label?: string \| Record<string, string>; width?: number; align?: Enum<'left' \| 'center' \| 'right'>; … }[]`| optional | Columns — all field-name strings, or all column entries `{ field, label?, width?, align?, hidden?, sortable?, … }`, the same union a list view's `columns` declares. One spelling per list: an array mixing strings and column objects is refused|
695
+
|**columns**|`any[]`| optional | Columns: field names or column definition objects |
696
696
|**fields**|`string[]`| optional | Field-name fallback the grid reads when `columns` is absent — bare field names (`['name', 'amount']`); write column decoration such as `label` or `width` on `columns`|
697
697
|**filter**|`{ field: string; operator: Enum<'equals' \| 'not_equals' \| 'contains' \| 'not_contains' \| 'icontains' \| …>; value?: string \| number \| boolean \| null \| (string \| number)[] }[]`| optional | Base query filter — the ViewFilterRule array form `[{ field, operator, value }, ...]`, the one filter orthography every `filter` door in this map shares; lowered to the wire `$filter`. THE key, singular — not the plural misspelling. The MongoDB-style record form is refused — see migration `element-data-source-and-object-block-filter-rule-array`|
698
698
|**defaultFilters**|`{ field: string; operator: Enum<'equals' \| 'not_equals' \| 'contains' \| 'not_contains' \| 'icontains' \| …>; value?: string \| number \| boolean \| null \| (string \| number)[] }[]`| optional | Legacy base-filter fallback, read only when `filter` is absent — the SAME ViewFilterRule array form `[{ field, operator, value }, ...]` as `filter`, lowered through the same sink. Prefer `filter`. The MongoDB-style record form, a bare string and an ObjectQL AST tuple array are refused — see migration `object-grid-default-filters-rule-array`|
@@ -736,25 +736,6 @@ Sort field and direction pair
736
736
|**message**|`string \| Record<string, string>`| optional | Line of text below the heading |
737
737
|**icon**|`string`| optional | Icon name drawn above the heading; a name that resolves to no icon draws the default empty-state glyph |
0 commit comments