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 29dcb8c
Browse filesBrowse the repository at this point in the historyBrowse files
Asif Ansari
committed
docs: sync all doc files with v1.0.0 API
- API_REFERENCE.md: fix paginationModel (remove bogus default), add
pageSizeOptions/onPaginationModelChange/height/density props; add
missing GridApi methods (getFilterModel, getAllColumns, setPageSize,
getAggregationResult, getAggregationModel, copySelectedRows); fix
GridColDef width type (number|string), remove non-existent pinned
property, replace with pinnable, fix type to remove dateTime and add
singleSelect/image; fix GridFilterModel items type to include
GridFilterGroup; fix groupingValue type from any to unknown
- components/datagrid.md: fix initialState type (GridState->GridInitialState),
add pageSizeOptions row, fix paginationModel default, add
onPaginationModelChange to events table, fix processRowUpdate signature
- features/sorting-pagination.md: add 'infinite' to paginationMode options,
add paginationModel and onPaginationModelChange to props table
- features/filtering.md: fix GridFilterModel items type, fix
GridFilterItem value type (any->unknown), fix date operators (remove
after/before, not in GridFilterOperator), add isAnyOf to string
operators, fix custom filter panel example (filterPanel is not a
valid slot; replace with correct toolbar slot guidance)
- features/selection.md: remove non-existent isRowSelectable prop,
add onRowSelectionModelChange and pinCheckboxColumn
- features/editing-reordering.md: fix onColumnOrderChange params
(params.newOrder does not exist; actual shape is
{column, oldIndex, targetIndex}), remove non-existent reorderable
column prop
- features/state-persistence.md: remove rowSelectionModel and
rowGroupingModel (not in GridState/GridInitialState), add density
To prevent a specific column from being moved, set `reorderable: false` in its definition.
95
+
To prevent all columns from being reordered, use `disableColumnReorder` on the grid. For individual column control, pin the column using `pinnedColumns` at the grid level — pinned columns do not participate in drag-reorder.
You can replace the default filter panel via the `slots` API:
74
+
## 🎨 Customizing the Toolbar
75
+
The filter panel is accessible through the built-in `GridToolbar`. To use your own toolbar that includes a filter entry point, pass a custom component to the `toolbar` slot:
76
76
77
77
```tsx
78
78
<DataGrid
79
79
slots={{
80
-
filterPanel: MyCustomFilterPanel
80
+
toolbar: MyCustomToolbar
81
81
}}
82
82
/>
83
83
```
84
+
85
+
The `FilterPanel` component is also exported from `@opencorestack/opengridx` if you need to embed it inside a custom layout.
0 commit comments