@mui/x-data-grid 6.18.5 → 6.18.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +49 -0
- package/DataGrid/DataGrid.js +19 -19
- package/index.js +1 -1
- package/legacy/DataGrid/DataGrid.js +19 -19
- package/legacy/index.js +1 -1
- package/models/props/DataGridProps.d.ts +22 -22
- package/modern/DataGrid/DataGrid.js +19 -19
- package/modern/index.js +1 -1
- package/node/DataGrid/DataGrid.js +19 -19
- package/node/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,55 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 6.18.6
|
|
7
|
+
|
|
8
|
+
_Dec 22, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🌍 Improve Russian (ru-RU) locale (#11429) @wensiet
|
|
13
|
+
- 🐞 Bugfixes
|
|
14
|
+
|
|
15
|
+
### Data Grid
|
|
16
|
+
|
|
17
|
+
#### `@mui/x-data-grid@6.18.6`
|
|
18
|
+
|
|
19
|
+
- [DataGrid] Fix typos in the JSDoc (#11475) @flaviendelangle
|
|
20
|
+
- [l10n] Improve Russian (ru-RU) locale (#11429) @wensiet
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid-pro@6.18.6` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
23
|
+
|
|
24
|
+
Same changes as in `@mui/x-data-grid@6.18.6`.
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid-premium@6.18.6` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
27
|
+
|
|
28
|
+
Same changes as in `@mui/x-data-grid-pro@6.18.6`.
|
|
29
|
+
|
|
30
|
+
### Date Pickers
|
|
31
|
+
|
|
32
|
+
#### `@mui/x-date-pickers@6.18.6`
|
|
33
|
+
|
|
34
|
+
- [fields] Fix section pasting (#11467) @LukasTy
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-date-pickers-pro@6.18.6` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
37
|
+
|
|
38
|
+
Same changes as in `@mui/x-date-pickers@6.18.6`.
|
|
39
|
+
|
|
40
|
+
### Charts / `@mui/x-charts@6.18.6`
|
|
41
|
+
|
|
42
|
+
- [charts] Allow percentage values for pie chart center and radius (#11464) @alexfauquette
|
|
43
|
+
- [charts] Make error message more explicit (#11457) @alexfauquette
|
|
44
|
+
- [charts] Make the helper `ChartsText` component public (#11370) @alexfauquette
|
|
45
|
+
- [charts] Improve dataset typing (#11372) @alexfauquette
|
|
46
|
+
- [charts] Fix size overflow (#11385) @alexfauquette
|
|
47
|
+
|
|
48
|
+
### Docs
|
|
49
|
+
|
|
50
|
+
- [docs] Document false default values for boolean props (#11489) @cherniavskii
|
|
51
|
+
- [docs] Improve Pickers `name` prop examples (#11442) @LukasTy
|
|
52
|
+
- [docs] Limit `date-fns` package to v2 in codesandbox (#11478) @LukasTy
|
|
53
|
+
- [test] Reload the page if its blank and there are no links to the remaining tests (#11471) @cherniavskii
|
|
54
|
+
|
|
6
55
|
## 6.18.5
|
|
7
56
|
|
|
8
57
|
_Dec 14, 2023_
|
package/DataGrid/DataGrid.js
CHANGED
|
@@ -53,21 +53,21 @@ DataGridRaw.propTypes = {
|
|
|
53
53
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
54
54
|
// ----------------------------------------------------------------------
|
|
55
55
|
/**
|
|
56
|
-
* The ref object that allows
|
|
56
|
+
* The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.
|
|
57
57
|
*/
|
|
58
58
|
apiRef: PropTypes.shape({
|
|
59
59
|
current: PropTypes.object.isRequired
|
|
60
60
|
}),
|
|
61
61
|
/**
|
|
62
|
-
* The label of the
|
|
62
|
+
* The label of the Data Grid.
|
|
63
63
|
*/
|
|
64
64
|
'aria-label': PropTypes.string,
|
|
65
65
|
/**
|
|
66
|
-
* The id of the element containing a label for the
|
|
66
|
+
* The id of the element containing a label for the Data Grid.
|
|
67
67
|
*/
|
|
68
68
|
'aria-labelledby': PropTypes.string,
|
|
69
69
|
/**
|
|
70
|
-
* If `true`, the
|
|
70
|
+
* If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
|
|
71
71
|
* @default false
|
|
72
72
|
*/
|
|
73
73
|
autoHeight: PropTypes.bool,
|
|
@@ -81,7 +81,7 @@ DataGridRaw.propTypes = {
|
|
|
81
81
|
*/
|
|
82
82
|
cellModesModel: PropTypes.object,
|
|
83
83
|
/**
|
|
84
|
-
* If `true`, the
|
|
84
|
+
* If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
|
|
85
85
|
* @default false
|
|
86
86
|
*/
|
|
87
87
|
checkboxSelection: PropTypes.bool,
|
|
@@ -101,7 +101,7 @@ DataGridRaw.propTypes = {
|
|
|
101
101
|
columnBuffer: PropTypes.number,
|
|
102
102
|
columnGroupingModel: PropTypes.arrayOf(PropTypes.object),
|
|
103
103
|
/**
|
|
104
|
-
* Sets the height in pixel of the column headers in the
|
|
104
|
+
* Sets the height in pixel of the column headers in the Data Grid.
|
|
105
105
|
* @default 56
|
|
106
106
|
*/
|
|
107
107
|
columnHeaderHeight: PropTypes.number,
|
|
@@ -121,8 +121,8 @@ DataGridRaw.propTypes = {
|
|
|
121
121
|
*/
|
|
122
122
|
columnThreshold: PropTypes.number,
|
|
123
123
|
/**
|
|
124
|
-
* Set the column visibility model of the
|
|
125
|
-
* If defined, the
|
|
124
|
+
* Set the column visibility model of the Data Grid.
|
|
125
|
+
* If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
|
|
126
126
|
*/
|
|
127
127
|
columnVisibilityModel: PropTypes.object,
|
|
128
128
|
/**
|
|
@@ -136,7 +136,7 @@ DataGridRaw.propTypes = {
|
|
|
136
136
|
*/
|
|
137
137
|
componentsProps: PropTypes.object,
|
|
138
138
|
/**
|
|
139
|
-
* Set the density of the
|
|
139
|
+
* Set the density of the Data Grid.
|
|
140
140
|
* @default "standard"
|
|
141
141
|
*/
|
|
142
142
|
density: PropTypes.oneOf(['comfortable', 'compact', 'standard']),
|
|
@@ -202,7 +202,7 @@ DataGridRaw.propTypes = {
|
|
|
202
202
|
*/
|
|
203
203
|
filterMode: PropTypes.oneOf(['client', 'server']),
|
|
204
204
|
/**
|
|
205
|
-
* Set the filter model of the
|
|
205
|
+
* Set the filter model of the Data Grid.
|
|
206
206
|
*/
|
|
207
207
|
filterModel: PropTypes.shape({
|
|
208
208
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
@@ -217,7 +217,7 @@ DataGridRaw.propTypes = {
|
|
|
217
217
|
quickFilterValues: PropTypes.array
|
|
218
218
|
}),
|
|
219
219
|
/**
|
|
220
|
-
* Forwarded props for the
|
|
220
|
+
* Forwarded props for the Data Grid root element.
|
|
221
221
|
* @ignore - do not document.
|
|
222
222
|
*/
|
|
223
223
|
forwardedProps: PropTypes.object,
|
|
@@ -314,7 +314,7 @@ DataGridRaw.propTypes = {
|
|
|
314
314
|
*/
|
|
315
315
|
loading: PropTypes.bool,
|
|
316
316
|
/**
|
|
317
|
-
* Set the locale text of the
|
|
317
|
+
* Set the locale text of the Data Grid.
|
|
318
318
|
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
319
319
|
*/
|
|
320
320
|
localeText: PropTypes.object,
|
|
@@ -482,7 +482,7 @@ DataGridRaw.propTypes = {
|
|
|
482
482
|
*/
|
|
483
483
|
onProcessRowUpdateError: PropTypes.func,
|
|
484
484
|
/**
|
|
485
|
-
* Callback fired when the
|
|
485
|
+
* Callback fired when the Data Grid is resized.
|
|
486
486
|
* @param {ElementSize} containerSize With all properties from [[ElementSize]].
|
|
487
487
|
* @param {MuiEvent<{}>} event The event object.
|
|
488
488
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -540,7 +540,7 @@ DataGridRaw.propTypes = {
|
|
|
540
540
|
*/
|
|
541
541
|
onSortModelChange: PropTypes.func,
|
|
542
542
|
/**
|
|
543
|
-
* Callback fired when the state of the
|
|
543
|
+
* Callback fired when the state of the Data Grid is updated.
|
|
544
544
|
* @param {GridState} state The new state.
|
|
545
545
|
* @param {MuiEvent<{}>} event The event object.
|
|
546
546
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -594,7 +594,7 @@ DataGridRaw.propTypes = {
|
|
|
594
594
|
*/
|
|
595
595
|
rowCount: PropTypes.number,
|
|
596
596
|
/**
|
|
597
|
-
* Sets the height in pixel of a row in the
|
|
597
|
+
* Sets the height in pixel of a row in the Data Grid.
|
|
598
598
|
* @default 52
|
|
599
599
|
*/
|
|
600
600
|
rowHeight: PropTypes.number,
|
|
@@ -619,7 +619,7 @@ DataGridRaw.propTypes = {
|
|
|
619
619
|
*/
|
|
620
620
|
rowSelection: PropTypes.bool,
|
|
621
621
|
/**
|
|
622
|
-
* Sets the row selection model of the
|
|
622
|
+
* Sets the row selection model of the Data Grid.
|
|
623
623
|
*/
|
|
624
624
|
rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
|
|
625
625
|
/**
|
|
@@ -633,7 +633,7 @@ DataGridRaw.propTypes = {
|
|
|
633
633
|
*/
|
|
634
634
|
rowThreshold: PropTypes.number,
|
|
635
635
|
/**
|
|
636
|
-
* Override the height/width of the
|
|
636
|
+
* Override the height/width of the Data Grid inner scrollbar.
|
|
637
637
|
*/
|
|
638
638
|
scrollbarSize: PropTypes.number,
|
|
639
639
|
/**
|
|
@@ -667,7 +667,7 @@ DataGridRaw.propTypes = {
|
|
|
667
667
|
*/
|
|
668
668
|
sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])),
|
|
669
669
|
/**
|
|
670
|
-
* Set the sort model of the
|
|
670
|
+
* Set the sort model of the Data Grid.
|
|
671
671
|
*/
|
|
672
672
|
sortModel: PropTypes.arrayOf(PropTypes.shape({
|
|
673
673
|
field: PropTypes.string.isRequired,
|
|
@@ -678,7 +678,7 @@ DataGridRaw.propTypes = {
|
|
|
678
678
|
*/
|
|
679
679
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
680
680
|
/**
|
|
681
|
-
* If `true`, the
|
|
681
|
+
* If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
|
|
682
682
|
* If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
|
|
683
683
|
* @default false
|
|
684
684
|
*/
|
package/index.js
CHANGED
|
@@ -53,21 +53,21 @@ DataGridRaw.propTypes = {
|
|
|
53
53
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
54
54
|
// ----------------------------------------------------------------------
|
|
55
55
|
/**
|
|
56
|
-
* The ref object that allows
|
|
56
|
+
* The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.
|
|
57
57
|
*/
|
|
58
58
|
apiRef: PropTypes.shape({
|
|
59
59
|
current: PropTypes.object.isRequired
|
|
60
60
|
}),
|
|
61
61
|
/**
|
|
62
|
-
* The label of the
|
|
62
|
+
* The label of the Data Grid.
|
|
63
63
|
*/
|
|
64
64
|
'aria-label': PropTypes.string,
|
|
65
65
|
/**
|
|
66
|
-
* The id of the element containing a label for the
|
|
66
|
+
* The id of the element containing a label for the Data Grid.
|
|
67
67
|
*/
|
|
68
68
|
'aria-labelledby': PropTypes.string,
|
|
69
69
|
/**
|
|
70
|
-
* If `true`, the
|
|
70
|
+
* If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
|
|
71
71
|
* @default false
|
|
72
72
|
*/
|
|
73
73
|
autoHeight: PropTypes.bool,
|
|
@@ -81,7 +81,7 @@ DataGridRaw.propTypes = {
|
|
|
81
81
|
*/
|
|
82
82
|
cellModesModel: PropTypes.object,
|
|
83
83
|
/**
|
|
84
|
-
* If `true`, the
|
|
84
|
+
* If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
|
|
85
85
|
* @default false
|
|
86
86
|
*/
|
|
87
87
|
checkboxSelection: PropTypes.bool,
|
|
@@ -101,7 +101,7 @@ DataGridRaw.propTypes = {
|
|
|
101
101
|
columnBuffer: PropTypes.number,
|
|
102
102
|
columnGroupingModel: PropTypes.arrayOf(PropTypes.object),
|
|
103
103
|
/**
|
|
104
|
-
* Sets the height in pixel of the column headers in the
|
|
104
|
+
* Sets the height in pixel of the column headers in the Data Grid.
|
|
105
105
|
* @default 56
|
|
106
106
|
*/
|
|
107
107
|
columnHeaderHeight: PropTypes.number,
|
|
@@ -123,8 +123,8 @@ DataGridRaw.propTypes = {
|
|
|
123
123
|
*/
|
|
124
124
|
columnThreshold: PropTypes.number,
|
|
125
125
|
/**
|
|
126
|
-
* Set the column visibility model of the
|
|
127
|
-
* If defined, the
|
|
126
|
+
* Set the column visibility model of the Data Grid.
|
|
127
|
+
* If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
|
|
128
128
|
*/
|
|
129
129
|
columnVisibilityModel: PropTypes.object,
|
|
130
130
|
/**
|
|
@@ -138,7 +138,7 @@ DataGridRaw.propTypes = {
|
|
|
138
138
|
*/
|
|
139
139
|
componentsProps: PropTypes.object,
|
|
140
140
|
/**
|
|
141
|
-
* Set the density of the
|
|
141
|
+
* Set the density of the Data Grid.
|
|
142
142
|
* @default "standard"
|
|
143
143
|
*/
|
|
144
144
|
density: PropTypes.oneOf(['comfortable', 'compact', 'standard']),
|
|
@@ -204,7 +204,7 @@ DataGridRaw.propTypes = {
|
|
|
204
204
|
*/
|
|
205
205
|
filterMode: PropTypes.oneOf(['client', 'server']),
|
|
206
206
|
/**
|
|
207
|
-
* Set the filter model of the
|
|
207
|
+
* Set the filter model of the Data Grid.
|
|
208
208
|
*/
|
|
209
209
|
filterModel: PropTypes.shape({
|
|
210
210
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
@@ -219,7 +219,7 @@ DataGridRaw.propTypes = {
|
|
|
219
219
|
quickFilterValues: PropTypes.array
|
|
220
220
|
}),
|
|
221
221
|
/**
|
|
222
|
-
* Forwarded props for the
|
|
222
|
+
* Forwarded props for the Data Grid root element.
|
|
223
223
|
* @ignore - do not document.
|
|
224
224
|
*/
|
|
225
225
|
forwardedProps: PropTypes.object,
|
|
@@ -316,7 +316,7 @@ DataGridRaw.propTypes = {
|
|
|
316
316
|
*/
|
|
317
317
|
loading: PropTypes.bool,
|
|
318
318
|
/**
|
|
319
|
-
* Set the locale text of the
|
|
319
|
+
* Set the locale text of the Data Grid.
|
|
320
320
|
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
321
321
|
*/
|
|
322
322
|
localeText: PropTypes.object,
|
|
@@ -484,7 +484,7 @@ DataGridRaw.propTypes = {
|
|
|
484
484
|
*/
|
|
485
485
|
onProcessRowUpdateError: PropTypes.func,
|
|
486
486
|
/**
|
|
487
|
-
* Callback fired when the
|
|
487
|
+
* Callback fired when the Data Grid is resized.
|
|
488
488
|
* @param {ElementSize} containerSize With all properties from [[ElementSize]].
|
|
489
489
|
* @param {MuiEvent<{}>} event The event object.
|
|
490
490
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -542,7 +542,7 @@ DataGridRaw.propTypes = {
|
|
|
542
542
|
*/
|
|
543
543
|
onSortModelChange: PropTypes.func,
|
|
544
544
|
/**
|
|
545
|
-
* Callback fired when the state of the
|
|
545
|
+
* Callback fired when the state of the Data Grid is updated.
|
|
546
546
|
* @param {GridState} state The new state.
|
|
547
547
|
* @param {MuiEvent<{}>} event The event object.
|
|
548
548
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -596,7 +596,7 @@ DataGridRaw.propTypes = {
|
|
|
596
596
|
*/
|
|
597
597
|
rowCount: PropTypes.number,
|
|
598
598
|
/**
|
|
599
|
-
* Sets the height in pixel of a row in the
|
|
599
|
+
* Sets the height in pixel of a row in the Data Grid.
|
|
600
600
|
* @default 52
|
|
601
601
|
*/
|
|
602
602
|
rowHeight: PropTypes.number,
|
|
@@ -621,7 +621,7 @@ DataGridRaw.propTypes = {
|
|
|
621
621
|
*/
|
|
622
622
|
rowSelection: PropTypes.bool,
|
|
623
623
|
/**
|
|
624
|
-
* Sets the row selection model of the
|
|
624
|
+
* Sets the row selection model of the Data Grid.
|
|
625
625
|
*/
|
|
626
626
|
rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
|
|
627
627
|
/**
|
|
@@ -635,7 +635,7 @@ DataGridRaw.propTypes = {
|
|
|
635
635
|
*/
|
|
636
636
|
rowThreshold: PropTypes.number,
|
|
637
637
|
/**
|
|
638
|
-
* Override the height/width of the
|
|
638
|
+
* Override the height/width of the Data Grid inner scrollbar.
|
|
639
639
|
*/
|
|
640
640
|
scrollbarSize: PropTypes.number,
|
|
641
641
|
/**
|
|
@@ -669,7 +669,7 @@ DataGridRaw.propTypes = {
|
|
|
669
669
|
*/
|
|
670
670
|
sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])),
|
|
671
671
|
/**
|
|
672
|
-
* Set the sort model of the
|
|
672
|
+
* Set the sort model of the Data Grid.
|
|
673
673
|
*/
|
|
674
674
|
sortModel: PropTypes.arrayOf(PropTypes.shape({
|
|
675
675
|
field: PropTypes.string.isRequired,
|
|
@@ -680,7 +680,7 @@ DataGridRaw.propTypes = {
|
|
|
680
680
|
*/
|
|
681
681
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
682
682
|
/**
|
|
683
|
-
* If `true`, the
|
|
683
|
+
* If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
|
|
684
684
|
* If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
|
|
685
685
|
* @default false
|
|
686
686
|
*/
|
package/legacy/index.js
CHANGED
|
@@ -79,7 +79,7 @@ export interface DataGridPropsWithComplexDefaultValueBeforeProcessing {
|
|
|
79
79
|
*/
|
|
80
80
|
slots?: UncapitalizeObjectKeys<Partial<GridSlotsComponent>>;
|
|
81
81
|
/**
|
|
82
|
-
* Set the locale text of the
|
|
82
|
+
* Set the locale text of the Data Grid.
|
|
83
83
|
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
84
84
|
*/
|
|
85
85
|
localeText?: Partial<GridLocaleText>;
|
|
@@ -92,7 +92,7 @@ export interface DataGridPropsWithComplexDefaultValueBeforeProcessing {
|
|
|
92
92
|
*/
|
|
93
93
|
export interface DataGridPropsWithDefaultValues {
|
|
94
94
|
/**
|
|
95
|
-
* If `true`, the
|
|
95
|
+
* If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
|
|
96
96
|
* @default false
|
|
97
97
|
*/
|
|
98
98
|
autoHeight: boolean;
|
|
@@ -102,7 +102,7 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
102
102
|
*/
|
|
103
103
|
autoPageSize: boolean;
|
|
104
104
|
/**
|
|
105
|
-
* If `true`, the
|
|
105
|
+
* If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
|
|
106
106
|
* @default false
|
|
107
107
|
*/
|
|
108
108
|
checkboxSelection: boolean;
|
|
@@ -138,7 +138,7 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
138
138
|
*/
|
|
139
139
|
columnThreshold: number;
|
|
140
140
|
/**
|
|
141
|
-
* Set the density of the
|
|
141
|
+
* Set the density of the Data Grid.
|
|
142
142
|
* @default "standard"
|
|
143
143
|
*/
|
|
144
144
|
density: GridDensity;
|
|
@@ -210,7 +210,7 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
210
210
|
*/
|
|
211
211
|
filterDebounceMs: number;
|
|
212
212
|
/**
|
|
213
|
-
* Sets the height in pixel of the column headers in the
|
|
213
|
+
* Sets the height in pixel of the column headers in the Data Grid.
|
|
214
214
|
* @default 56
|
|
215
215
|
*/
|
|
216
216
|
columnHeaderHeight: number;
|
|
@@ -271,7 +271,7 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
271
271
|
*/
|
|
272
272
|
paginationMode: GridFeatureMode;
|
|
273
273
|
/**
|
|
274
|
-
* Sets the height in pixel of a row in the
|
|
274
|
+
* Sets the height in pixel of a row in the Data Grid.
|
|
275
275
|
* @default 52
|
|
276
276
|
*/
|
|
277
277
|
rowHeight: number;
|
|
@@ -311,7 +311,7 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
311
311
|
*/
|
|
312
312
|
sortingMode: GridFeatureMode;
|
|
313
313
|
/**
|
|
314
|
-
* If positive, the Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
|
|
314
|
+
* If positive, the Data Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
|
|
315
315
|
* It can be useful if you have a high update rate but do not want to do heavy work like filtering / sorting or rendering on each individual update.
|
|
316
316
|
* @default 0
|
|
317
317
|
*/
|
|
@@ -327,13 +327,13 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
327
327
|
*/
|
|
328
328
|
disableColumnResize: boolean;
|
|
329
329
|
/**
|
|
330
|
-
* If `true`, moving the mouse pointer outside the
|
|
330
|
+
* If `true`, moving the mouse pointer outside the Data Grid before releasing the mouse button
|
|
331
331
|
* in a column re-order action will not cause the column to jump back to its original position.
|
|
332
332
|
* @default false
|
|
333
333
|
*/
|
|
334
334
|
keepColumnPositionIfDraggedOutside: boolean;
|
|
335
335
|
/**
|
|
336
|
-
* If `true`, the
|
|
336
|
+
* If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
|
|
337
337
|
* If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
|
|
338
338
|
* @default false
|
|
339
339
|
*/
|
|
@@ -359,17 +359,17 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
359
359
|
*/
|
|
360
360
|
export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel = any> extends CommonProps {
|
|
361
361
|
/**
|
|
362
|
-
* The ref object that allows
|
|
362
|
+
* The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.
|
|
363
363
|
*/
|
|
364
364
|
apiRef?: React.MutableRefObject<GridApiCommunity>;
|
|
365
365
|
/**
|
|
366
|
-
* Forwarded props for the
|
|
366
|
+
* Forwarded props for the Data Grid root element.
|
|
367
367
|
* @ignore - do not document.
|
|
368
368
|
*/
|
|
369
369
|
forwardedProps?: Record<string, unknown>;
|
|
370
370
|
/**
|
|
371
371
|
* Signal to the underlying logic what version of the public component API
|
|
372
|
-
* of the
|
|
372
|
+
* of the Data Grid is exposed [[GridSignature]].
|
|
373
373
|
* @ignore - do not document.
|
|
374
374
|
*/
|
|
375
375
|
signature?: string;
|
|
@@ -383,7 +383,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
383
383
|
*/
|
|
384
384
|
rowCount?: number;
|
|
385
385
|
/**
|
|
386
|
-
* Override the height/width of the
|
|
386
|
+
* Override the height/width of the Data Grid inner scrollbar.
|
|
387
387
|
*/
|
|
388
388
|
scrollbarSize?: number;
|
|
389
389
|
/**
|
|
@@ -552,14 +552,14 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
552
552
|
*/
|
|
553
553
|
onRowDoubleClick?: GridEventListener<'rowDoubleClick'>;
|
|
554
554
|
/**
|
|
555
|
-
* Callback fired when the
|
|
555
|
+
* Callback fired when the Data Grid is resized.
|
|
556
556
|
* @param {ElementSize} containerSize With all properties from [[ElementSize]].
|
|
557
557
|
* @param {MuiEvent<{}>} event The event object.
|
|
558
558
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
559
559
|
*/
|
|
560
560
|
onResize?: GridEventListener<'debouncedResize'>;
|
|
561
561
|
/**
|
|
562
|
-
* Callback fired when the state of the
|
|
562
|
+
* Callback fired when the state of the Data Grid is updated.
|
|
563
563
|
* @param {GridState} state The new state.
|
|
564
564
|
* @param {MuiEvent<{}>} event The event object.
|
|
565
565
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -625,7 +625,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
625
625
|
*/
|
|
626
626
|
onRowModesModelChange?: (rowModesModel: GridRowModesModel, details: GridCallbackDetails) => void;
|
|
627
627
|
/**
|
|
628
|
-
* Set the filter model of the
|
|
628
|
+
* Set the filter model of the Data Grid.
|
|
629
629
|
*/
|
|
630
630
|
filterModel?: GridFilterModel;
|
|
631
631
|
/**
|
|
@@ -635,7 +635,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
635
635
|
*/
|
|
636
636
|
onFilterModelChange?: (model: GridFilterModel, details: GridCallbackDetails<'filter'>) => void;
|
|
637
637
|
/**
|
|
638
|
-
* Sets the row selection model of the
|
|
638
|
+
* Sets the row selection model of the Data Grid.
|
|
639
639
|
*/
|
|
640
640
|
rowSelectionModel?: GridInputRowSelectionModel;
|
|
641
641
|
/**
|
|
@@ -645,8 +645,8 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
645
645
|
*/
|
|
646
646
|
onRowSelectionModelChange?: (rowSelectionModel: GridRowSelectionModel, details: GridCallbackDetails) => void;
|
|
647
647
|
/**
|
|
648
|
-
* Set the column visibility model of the
|
|
649
|
-
* If defined, the
|
|
648
|
+
* Set the column visibility model of the Data Grid.
|
|
649
|
+
* If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
|
|
650
650
|
*/
|
|
651
651
|
columnVisibilityModel?: GridColumnVisibilityModel;
|
|
652
652
|
/**
|
|
@@ -656,7 +656,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
656
656
|
*/
|
|
657
657
|
onColumnVisibilityModelChange?: (model: GridColumnVisibilityModel, details: GridCallbackDetails) => void;
|
|
658
658
|
/**
|
|
659
|
-
* Set the sort model of the
|
|
659
|
+
* Set the sort model of the Data Grid.
|
|
660
660
|
*/
|
|
661
661
|
sortModel?: GridSortModel;
|
|
662
662
|
/**
|
|
@@ -666,11 +666,11 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
666
666
|
*/
|
|
667
667
|
onSortModelChange?: (model: GridSortModel, details: GridCallbackDetails) => void;
|
|
668
668
|
/**
|
|
669
|
-
* The label of the
|
|
669
|
+
* The label of the Data Grid.
|
|
670
670
|
*/
|
|
671
671
|
'aria-label'?: string;
|
|
672
672
|
/**
|
|
673
|
-
* The id of the element containing a label for the
|
|
673
|
+
* The id of the element containing a label for the Data Grid.
|
|
674
674
|
*/
|
|
675
675
|
'aria-labelledby'?: string;
|
|
676
676
|
/**
|
|
@@ -53,21 +53,21 @@ DataGridRaw.propTypes = {
|
|
|
53
53
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
54
54
|
// ----------------------------------------------------------------------
|
|
55
55
|
/**
|
|
56
|
-
* The ref object that allows
|
|
56
|
+
* The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.
|
|
57
57
|
*/
|
|
58
58
|
apiRef: PropTypes.shape({
|
|
59
59
|
current: PropTypes.object.isRequired
|
|
60
60
|
}),
|
|
61
61
|
/**
|
|
62
|
-
* The label of the
|
|
62
|
+
* The label of the Data Grid.
|
|
63
63
|
*/
|
|
64
64
|
'aria-label': PropTypes.string,
|
|
65
65
|
/**
|
|
66
|
-
* The id of the element containing a label for the
|
|
66
|
+
* The id of the element containing a label for the Data Grid.
|
|
67
67
|
*/
|
|
68
68
|
'aria-labelledby': PropTypes.string,
|
|
69
69
|
/**
|
|
70
|
-
* If `true`, the
|
|
70
|
+
* If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
|
|
71
71
|
* @default false
|
|
72
72
|
*/
|
|
73
73
|
autoHeight: PropTypes.bool,
|
|
@@ -81,7 +81,7 @@ DataGridRaw.propTypes = {
|
|
|
81
81
|
*/
|
|
82
82
|
cellModesModel: PropTypes.object,
|
|
83
83
|
/**
|
|
84
|
-
* If `true`, the
|
|
84
|
+
* If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
|
|
85
85
|
* @default false
|
|
86
86
|
*/
|
|
87
87
|
checkboxSelection: PropTypes.bool,
|
|
@@ -101,7 +101,7 @@ DataGridRaw.propTypes = {
|
|
|
101
101
|
columnBuffer: PropTypes.number,
|
|
102
102
|
columnGroupingModel: PropTypes.arrayOf(PropTypes.object),
|
|
103
103
|
/**
|
|
104
|
-
* Sets the height in pixel of the column headers in the
|
|
104
|
+
* Sets the height in pixel of the column headers in the Data Grid.
|
|
105
105
|
* @default 56
|
|
106
106
|
*/
|
|
107
107
|
columnHeaderHeight: PropTypes.number,
|
|
@@ -121,8 +121,8 @@ DataGridRaw.propTypes = {
|
|
|
121
121
|
*/
|
|
122
122
|
columnThreshold: PropTypes.number,
|
|
123
123
|
/**
|
|
124
|
-
* Set the column visibility model of the
|
|
125
|
-
* If defined, the
|
|
124
|
+
* Set the column visibility model of the Data Grid.
|
|
125
|
+
* If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
|
|
126
126
|
*/
|
|
127
127
|
columnVisibilityModel: PropTypes.object,
|
|
128
128
|
/**
|
|
@@ -136,7 +136,7 @@ DataGridRaw.propTypes = {
|
|
|
136
136
|
*/
|
|
137
137
|
componentsProps: PropTypes.object,
|
|
138
138
|
/**
|
|
139
|
-
* Set the density of the
|
|
139
|
+
* Set the density of the Data Grid.
|
|
140
140
|
* @default "standard"
|
|
141
141
|
*/
|
|
142
142
|
density: PropTypes.oneOf(['comfortable', 'compact', 'standard']),
|
|
@@ -202,7 +202,7 @@ DataGridRaw.propTypes = {
|
|
|
202
202
|
*/
|
|
203
203
|
filterMode: PropTypes.oneOf(['client', 'server']),
|
|
204
204
|
/**
|
|
205
|
-
* Set the filter model of the
|
|
205
|
+
* Set the filter model of the Data Grid.
|
|
206
206
|
*/
|
|
207
207
|
filterModel: PropTypes.shape({
|
|
208
208
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
@@ -217,7 +217,7 @@ DataGridRaw.propTypes = {
|
|
|
217
217
|
quickFilterValues: PropTypes.array
|
|
218
218
|
}),
|
|
219
219
|
/**
|
|
220
|
-
* Forwarded props for the
|
|
220
|
+
* Forwarded props for the Data Grid root element.
|
|
221
221
|
* @ignore - do not document.
|
|
222
222
|
*/
|
|
223
223
|
forwardedProps: PropTypes.object,
|
|
@@ -314,7 +314,7 @@ DataGridRaw.propTypes = {
|
|
|
314
314
|
*/
|
|
315
315
|
loading: PropTypes.bool,
|
|
316
316
|
/**
|
|
317
|
-
* Set the locale text of the
|
|
317
|
+
* Set the locale text of the Data Grid.
|
|
318
318
|
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
319
319
|
*/
|
|
320
320
|
localeText: PropTypes.object,
|
|
@@ -482,7 +482,7 @@ DataGridRaw.propTypes = {
|
|
|
482
482
|
*/
|
|
483
483
|
onProcessRowUpdateError: PropTypes.func,
|
|
484
484
|
/**
|
|
485
|
-
* Callback fired when the
|
|
485
|
+
* Callback fired when the Data Grid is resized.
|
|
486
486
|
* @param {ElementSize} containerSize With all properties from [[ElementSize]].
|
|
487
487
|
* @param {MuiEvent<{}>} event The event object.
|
|
488
488
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -540,7 +540,7 @@ DataGridRaw.propTypes = {
|
|
|
540
540
|
*/
|
|
541
541
|
onSortModelChange: PropTypes.func,
|
|
542
542
|
/**
|
|
543
|
-
* Callback fired when the state of the
|
|
543
|
+
* Callback fired when the state of the Data Grid is updated.
|
|
544
544
|
* @param {GridState} state The new state.
|
|
545
545
|
* @param {MuiEvent<{}>} event The event object.
|
|
546
546
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -594,7 +594,7 @@ DataGridRaw.propTypes = {
|
|
|
594
594
|
*/
|
|
595
595
|
rowCount: PropTypes.number,
|
|
596
596
|
/**
|
|
597
|
-
* Sets the height in pixel of a row in the
|
|
597
|
+
* Sets the height in pixel of a row in the Data Grid.
|
|
598
598
|
* @default 52
|
|
599
599
|
*/
|
|
600
600
|
rowHeight: PropTypes.number,
|
|
@@ -619,7 +619,7 @@ DataGridRaw.propTypes = {
|
|
|
619
619
|
*/
|
|
620
620
|
rowSelection: PropTypes.bool,
|
|
621
621
|
/**
|
|
622
|
-
* Sets the row selection model of the
|
|
622
|
+
* Sets the row selection model of the Data Grid.
|
|
623
623
|
*/
|
|
624
624
|
rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
|
|
625
625
|
/**
|
|
@@ -633,7 +633,7 @@ DataGridRaw.propTypes = {
|
|
|
633
633
|
*/
|
|
634
634
|
rowThreshold: PropTypes.number,
|
|
635
635
|
/**
|
|
636
|
-
* Override the height/width of the
|
|
636
|
+
* Override the height/width of the Data Grid inner scrollbar.
|
|
637
637
|
*/
|
|
638
638
|
scrollbarSize: PropTypes.number,
|
|
639
639
|
/**
|
|
@@ -667,7 +667,7 @@ DataGridRaw.propTypes = {
|
|
|
667
667
|
*/
|
|
668
668
|
sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])),
|
|
669
669
|
/**
|
|
670
|
-
* Set the sort model of the
|
|
670
|
+
* Set the sort model of the Data Grid.
|
|
671
671
|
*/
|
|
672
672
|
sortModel: PropTypes.arrayOf(PropTypes.shape({
|
|
673
673
|
field: PropTypes.string.isRequired,
|
|
@@ -678,7 +678,7 @@ DataGridRaw.propTypes = {
|
|
|
678
678
|
*/
|
|
679
679
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
680
680
|
/**
|
|
681
|
-
* If `true`, the
|
|
681
|
+
* If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
|
|
682
682
|
* If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
|
|
683
683
|
* @default false
|
|
684
684
|
*/
|
package/modern/index.js
CHANGED
|
@@ -61,21 +61,21 @@ DataGridRaw.propTypes = {
|
|
|
61
61
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
62
62
|
// ----------------------------------------------------------------------
|
|
63
63
|
/**
|
|
64
|
-
* The ref object that allows
|
|
64
|
+
* The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.
|
|
65
65
|
*/
|
|
66
66
|
apiRef: _propTypes.default.shape({
|
|
67
67
|
current: _propTypes.default.object.isRequired
|
|
68
68
|
}),
|
|
69
69
|
/**
|
|
70
|
-
* The label of the
|
|
70
|
+
* The label of the Data Grid.
|
|
71
71
|
*/
|
|
72
72
|
'aria-label': _propTypes.default.string,
|
|
73
73
|
/**
|
|
74
|
-
* The id of the element containing a label for the
|
|
74
|
+
* The id of the element containing a label for the Data Grid.
|
|
75
75
|
*/
|
|
76
76
|
'aria-labelledby': _propTypes.default.string,
|
|
77
77
|
/**
|
|
78
|
-
* If `true`, the
|
|
78
|
+
* If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
|
|
79
79
|
* @default false
|
|
80
80
|
*/
|
|
81
81
|
autoHeight: _propTypes.default.bool,
|
|
@@ -89,7 +89,7 @@ DataGridRaw.propTypes = {
|
|
|
89
89
|
*/
|
|
90
90
|
cellModesModel: _propTypes.default.object,
|
|
91
91
|
/**
|
|
92
|
-
* If `true`, the
|
|
92
|
+
* If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
|
|
93
93
|
* @default false
|
|
94
94
|
*/
|
|
95
95
|
checkboxSelection: _propTypes.default.bool,
|
|
@@ -109,7 +109,7 @@ DataGridRaw.propTypes = {
|
|
|
109
109
|
columnBuffer: _propTypes.default.number,
|
|
110
110
|
columnGroupingModel: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
111
111
|
/**
|
|
112
|
-
* Sets the height in pixel of the column headers in the
|
|
112
|
+
* Sets the height in pixel of the column headers in the Data Grid.
|
|
113
113
|
* @default 56
|
|
114
114
|
*/
|
|
115
115
|
columnHeaderHeight: _propTypes.default.number,
|
|
@@ -129,8 +129,8 @@ DataGridRaw.propTypes = {
|
|
|
129
129
|
*/
|
|
130
130
|
columnThreshold: _propTypes.default.number,
|
|
131
131
|
/**
|
|
132
|
-
* Set the column visibility model of the
|
|
133
|
-
* If defined, the
|
|
132
|
+
* Set the column visibility model of the Data Grid.
|
|
133
|
+
* If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
|
|
134
134
|
*/
|
|
135
135
|
columnVisibilityModel: _propTypes.default.object,
|
|
136
136
|
/**
|
|
@@ -144,7 +144,7 @@ DataGridRaw.propTypes = {
|
|
|
144
144
|
*/
|
|
145
145
|
componentsProps: _propTypes.default.object,
|
|
146
146
|
/**
|
|
147
|
-
* Set the density of the
|
|
147
|
+
* Set the density of the Data Grid.
|
|
148
148
|
* @default "standard"
|
|
149
149
|
*/
|
|
150
150
|
density: _propTypes.default.oneOf(['comfortable', 'compact', 'standard']),
|
|
@@ -210,7 +210,7 @@ DataGridRaw.propTypes = {
|
|
|
210
210
|
*/
|
|
211
211
|
filterMode: _propTypes.default.oneOf(['client', 'server']),
|
|
212
212
|
/**
|
|
213
|
-
* Set the filter model of the
|
|
213
|
+
* Set the filter model of the Data Grid.
|
|
214
214
|
*/
|
|
215
215
|
filterModel: _propTypes.default.shape({
|
|
216
216
|
items: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
@@ -225,7 +225,7 @@ DataGridRaw.propTypes = {
|
|
|
225
225
|
quickFilterValues: _propTypes.default.array
|
|
226
226
|
}),
|
|
227
227
|
/**
|
|
228
|
-
* Forwarded props for the
|
|
228
|
+
* Forwarded props for the Data Grid root element.
|
|
229
229
|
* @ignore - do not document.
|
|
230
230
|
*/
|
|
231
231
|
forwardedProps: _propTypes.default.object,
|
|
@@ -322,7 +322,7 @@ DataGridRaw.propTypes = {
|
|
|
322
322
|
*/
|
|
323
323
|
loading: _propTypes.default.bool,
|
|
324
324
|
/**
|
|
325
|
-
* Set the locale text of the
|
|
325
|
+
* Set the locale text of the Data Grid.
|
|
326
326
|
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
327
327
|
*/
|
|
328
328
|
localeText: _propTypes.default.object,
|
|
@@ -490,7 +490,7 @@ DataGridRaw.propTypes = {
|
|
|
490
490
|
*/
|
|
491
491
|
onProcessRowUpdateError: _propTypes.default.func,
|
|
492
492
|
/**
|
|
493
|
-
* Callback fired when the
|
|
493
|
+
* Callback fired when the Data Grid is resized.
|
|
494
494
|
* @param {ElementSize} containerSize With all properties from [[ElementSize]].
|
|
495
495
|
* @param {MuiEvent<{}>} event The event object.
|
|
496
496
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -548,7 +548,7 @@ DataGridRaw.propTypes = {
|
|
|
548
548
|
*/
|
|
549
549
|
onSortModelChange: _propTypes.default.func,
|
|
550
550
|
/**
|
|
551
|
-
* Callback fired when the state of the
|
|
551
|
+
* Callback fired when the state of the Data Grid is updated.
|
|
552
552
|
* @param {GridState} state The new state.
|
|
553
553
|
* @param {MuiEvent<{}>} event The event object.
|
|
554
554
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -602,7 +602,7 @@ DataGridRaw.propTypes = {
|
|
|
602
602
|
*/
|
|
603
603
|
rowCount: _propTypes.default.number,
|
|
604
604
|
/**
|
|
605
|
-
* Sets the height in pixel of a row in the
|
|
605
|
+
* Sets the height in pixel of a row in the Data Grid.
|
|
606
606
|
* @default 52
|
|
607
607
|
*/
|
|
608
608
|
rowHeight: _propTypes.default.number,
|
|
@@ -627,7 +627,7 @@ DataGridRaw.propTypes = {
|
|
|
627
627
|
*/
|
|
628
628
|
rowSelection: _propTypes.default.bool,
|
|
629
629
|
/**
|
|
630
|
-
* Sets the row selection model of the
|
|
630
|
+
* Sets the row selection model of the Data Grid.
|
|
631
631
|
*/
|
|
632
632
|
rowSelectionModel: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired), _propTypes.default.number, _propTypes.default.string]),
|
|
633
633
|
/**
|
|
@@ -641,7 +641,7 @@ DataGridRaw.propTypes = {
|
|
|
641
641
|
*/
|
|
642
642
|
rowThreshold: _propTypes.default.number,
|
|
643
643
|
/**
|
|
644
|
-
* Override the height/width of the
|
|
644
|
+
* Override the height/width of the Data Grid inner scrollbar.
|
|
645
645
|
*/
|
|
646
646
|
scrollbarSize: _propTypes.default.number,
|
|
647
647
|
/**
|
|
@@ -675,7 +675,7 @@ DataGridRaw.propTypes = {
|
|
|
675
675
|
*/
|
|
676
676
|
sortingOrder: _propTypes.default.arrayOf(_propTypes.default.oneOf(['asc', 'desc'])),
|
|
677
677
|
/**
|
|
678
|
-
* Set the sort model of the
|
|
678
|
+
* Set the sort model of the Data Grid.
|
|
679
679
|
*/
|
|
680
680
|
sortModel: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
681
681
|
field: _propTypes.default.string.isRequired,
|
|
@@ -686,7 +686,7 @@ DataGridRaw.propTypes = {
|
|
|
686
686
|
*/
|
|
687
687
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
688
688
|
/**
|
|
689
|
-
* If `true`, the
|
|
689
|
+
* If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
|
|
690
690
|
* If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
|
|
691
691
|
* @default false
|
|
692
692
|
*/
|
package/node/index.js
CHANGED