Skip to content

Commit

Permalink
[DataGridPro] Allow to group rows based on column value (mui#3277)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle authored and siriwatknp committed Jan 21, 2022
1 parent 5514169 commit 14c8caa
Show file tree
Hide file tree
Showing 158 changed files with 7,684 additions and 775 deletions.
22 changes: 20 additions & 2 deletions docs/pages/api-docs/data-grid/data-grid-pro.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"disableMultipleColumnsFiltering": { "type": { "name": "bool" } },
"disableMultipleColumnsSorting": { "type": { "name": "bool" } },
"disableMultipleSelection": { "type": { "name": "bool" } },
"disableRowGrouping": { "type": { "name": "bool" } },
"disableSelectionOnClick": { "type": { "name": "bool" } },
"disableVirtualization": { "type": { "name": "bool" } },
"editMode": {
Expand All @@ -53,6 +54,9 @@
},
"editRowsModel": { "type": { "name": "object" } },
"error": { "type": { "name": "any" } },
"experimentalFeatures": {
"type": { "name": "shape", "description": "{ rowGrouping?: bool }" }
},
"filterMode": {
"type": { "name": "custom", "description": "'client'<br>&#124;&nbsp;'server'" },
"default": "\"client\""
Expand Down Expand Up @@ -131,6 +135,7 @@
"onRowEditCommit": { "type": { "name": "func" } },
"onRowEditStart": { "type": { "name": "func" } },
"onRowEditStop": { "type": { "name": "func" } },
"onRowGroupingModelChange": { "type": { "name": "func" } },
"onRowsScrollEnd": { "type": { "name": "func" } },
"onSelectionModelChange": { "type": { "name": "func" } },
"onSortModelChange": { "type": { "name": "func" } },
Expand All @@ -150,6 +155,11 @@
},
"rowBuffer": { "type": { "name": "number" }, "default": "3" },
"rowCount": { "type": { "name": "number" } },
"rowGroupingColumnMode": {
"type": { "name": "enum", "description": "'multiple'<br>&#124;&nbsp;'single'" },
"default": "'single'"
},
"rowGroupingModel": { "type": { "name": "arrayOf", "description": "Array&lt;string&gt;" } },
"rowHeight": { "type": { "name": "number" }, "default": "52" },
"rowsPerPageOptions": {
"type": { "name": "arrayOf", "description": "Array&lt;number&gt;" },
Expand Down Expand Up @@ -232,6 +242,14 @@
"ExportIcon": { "default": "GridSaveAltIcon", "type": { "name": "elementType" } },
"FilterPanel": { "default": "GridFilterPanel", "type": { "name": "elementType" } },
"Footer": { "default": "GridFooter", "type": { "name": "elementType" } },
"GroupingCriteriaCollapseIcon": {
"default": "GridExpandMoreIcon",
"type": { "name": "elementType" }
},
"GroupingCriteriaExpandIcon": {
"default": "GridKeyboardArrowRight",
"type": { "name": "elementType" }
},
"Header": { "default": "GridHeader", "type": { "name": "elementType" } },
"LoadingOverlay": { "default": "GridLoadingOverlay", "type": { "name": "elementType" } },
"MoreActionsIcon": { "default": "GridMoreVertIcon", "type": { "name": "elementType" } },
Expand All @@ -243,8 +261,8 @@
"PreferencesPanel": { "default": "GridPreferencesPanel", "type": { "name": "elementType" } },
"Row": { "type": { "name": "elementType" } },
"Toolbar": { "default": "null", "type": { "name": "elementType | null" } },
"TreeDataCollapseIcon": { "type": { "name": "elementType" } },
"TreeDataExpandIcon": { "type": { "name": "elementType" } }
"TreeDataCollapseIcon": { "default": "GridExpandMoreIcon", "type": { "name": "elementType" } },
"TreeDataExpandIcon": { "default": "GridKeyboardArrowRight", "type": { "name": "elementType" } }
},
"name": "DataGridPro",
"styles": {
Expand Down
12 changes: 10 additions & 2 deletions docs/pages/api-docs/data-grid/data-grid.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@
"ExportIcon": { "default": "GridSaveAltIcon", "type": { "name": "elementType" } },
"FilterPanel": { "default": "GridFilterPanel", "type": { "name": "elementType" } },
"Footer": { "default": "GridFooter", "type": { "name": "elementType" } },
"GroupingCriteriaCollapseIcon": {
"default": "GridExpandMoreIcon",
"type": { "name": "elementType" }
},
"GroupingCriteriaExpandIcon": {
"default": "GridKeyboardArrowRight",
"type": { "name": "elementType" }
},
"Header": { "default": "GridHeader", "type": { "name": "elementType" } },
"LoadingOverlay": { "default": "GridLoadingOverlay", "type": { "name": "elementType" } },
"MoreActionsIcon": { "default": "GridMoreVertIcon", "type": { "name": "elementType" } },
Expand All @@ -200,8 +208,8 @@
"PreferencesPanel": { "default": "GridPreferencesPanel", "type": { "name": "elementType" } },
"Row": { "type": { "name": "elementType" } },
"Toolbar": { "default": "null", "type": { "name": "elementType | null" } },
"TreeDataCollapseIcon": { "type": { "name": "elementType" } },
"TreeDataExpandIcon": { "type": { "name": "elementType" } }
"TreeDataCollapseIcon": { "default": "GridExpandMoreIcon", "type": { "name": "elementType" } },
"TreeDataExpandIcon": { "default": "GridKeyboardArrowRight", "type": { "name": "elementType" } }
},
"name": "DataGrid",
"styles": {
Expand Down
Loading

0 comments on commit 14c8caa

Please sign in to comment.