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 39fef70
Browse filesBrowse the repository at this point in the historyBrowse files
|**frozenColumns**|`number`| optional | How many leading columns stay frozen (default 1) |
726
726
|**showColumnTypeIcons**|`boolean`| optional | Show field-type icons in column headers |
727
-
|**exportOptions**|`any`| optional | Export config (`{ formats, maxRecords, includeHeaders, fileNamePrefix, streaming }`). Unvalidated here (`z.unknown()`), so this list is the whole account of the shape; `ListViewSchema.exportOptions` declares the same five members with their per-member contract|
727
+
|**exportOptions**|`{ formats?: Enum<'csv' \| 'xlsx' \| 'json'>[]; maxRecords?: integer; includeHeaders?: boolean; fileNamePrefix?: string; … }`| optional | Export config — the object `{ formats?, maxRecords?, includeHeaders?, fileNamePrefix?, streaming? }`, the same block a list view's `exportOptions` declares, with `formats` drawn from `csv`, `xlsx` and `json`. A bare format array is refused: the grid reads `exportOptions.formats`, so write `{ formats: ['csv', 'xlsx'] }`|
|**data**|`{ provider: 'object'; object: string } \| { provider: 'api'; read?: object; write?: object } \| { provider: 'value'; items: any[] } \| { provider: 'schema'; schemaId: string; schema?: Record<string, any> }`| optional | Data source binding (ViewDataSchema — discriminated on `provider`: object \| api \| value \| schema). Static inline rows live at `{ provider: 'value', items: [...] }`; the bare-array shortcut is refused — see migration `object-grid-data-view-data-converged`|
730
730
|**staticData**|`any[]`| optional | Deprecated bare-array static-rows shortcut the renderer still reads. Prefer `data: { provider: 'value', items: [...] }`|
@@ -772,6 +772,16 @@ Sort field and direction pair
772
772
| :--- | :--- | :--- | :--- |
773
773
|**fields**|`{ field: string; order: Enum<'asc' \| 'desc'>; collapsed: boolean }[]`| ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy`|
774
774
775
+
### Nested Shape: `ObjectGridProps.exportOptions`
776
+
777
+
| Property | Type | Required | Description |
778
+
| :--- | :--- | :--- | :--- |
779
+
|**formats**|`Enum<'csv' \| 'xlsx' \| 'json'>[]`| optional | Formats offered in the export menu (default: ['csv', 'json']). XLSX is delivered by the server stream only. |
780
+
|**maxRecords**|`integer`| optional | Maximum number of records to export; 0 or absent = unlimited |
781
+
|**includeHeaders**|`boolean`| optional | Include column headers in the exported file (default true) |
782
+
|**fileNamePrefix**|`string`| optional | Download file name prefix — replaces the object label and suppresses the view label in the generated file name |
783
+
|**streaming**|`boolean`| optional | Set false to force the client-side export path (csv/json only) instead of the server stream |
0 commit comments