Skip to content

Commit

Permalink
generate proptypes and api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vfbiby committed Oct 4, 2024
1 parent 6b1c212 commit c81f2f8
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 22 deletions.
2 changes: 1 addition & 1 deletion docs/data/data-grid/events/events.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
{
"projects": ["x-data-grid", "x-data-grid-pro", "x-data-grid-premium"],
"name": "columnHeaderContextMenu",
"description": "Fired when a column header is double-clicked.",
"description": "Fired when the user attempts to open a context menu in the column header.",
"params": "GridColumnHeaderParams",
"event": "MuiEvent<React.MouseEvent<HTMLElement>>",
"componentProp": "onColumnHeaderContextMenu"
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/x/api/data-grid/data-grid-premium.json
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@
"onColumnHeaderContextMenu": {
"type": { "name": "func" },
"signature": {
"type": "function(params: GridColumnHeaderParams, event: MuiEvent<React.MouseEvent>, details: GridCallbackDetails) => void",
"describedArgs": ["params", "event", "details"]
"type": "function(params: GridColumnHeaderParams, event: MuiEvent<React.MouseEvent>) => void",
"describedArgs": ["params", "event"]
}
},
"onColumnHeaderDoubleClick": {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/x/api/data-grid/data-grid-pro.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@
"onColumnHeaderContextMenu": {
"type": { "name": "func" },
"signature": {
"type": "function(params: GridColumnHeaderParams, event: MuiEvent<React.MouseEvent>, details: GridCallbackDetails) => void",
"describedArgs": ["params", "event", "details"]
"type": "function(params: GridColumnHeaderParams, event: MuiEvent<React.MouseEvent>) => void",
"describedArgs": ["params", "event"]
}
},
"onColumnHeaderDoubleClick": {
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/x/api/data-grid/data-grid.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@
"onColumnHeaderContextMenu": {
"type": { "name": "func" },
"signature": {
"type": "function(params: GridColumnHeaderParams, event: MuiEvent<React.MouseEvent>, details: GridCallbackDetails) => void",
"describedArgs": ["params", "event", "details"]
"type": "function(params: GridColumnHeaderParams, event: MuiEvent<React.MouseEvent>) => void",
"describedArgs": ["params", "event"]
}
},
"onColumnHeaderDoubleClick": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,10 @@
}
},
"onColumnHeaderContextMenu": {
"description": "Callback fired when a double click event comes from a column header element.",
"description": "Callback fired when a contextmenu event comes from a column header element.",
"typeDescriptions": {
"params": "With all properties from GridColumnHeaderParams.",
"event": "The event object.",
"details": "Additional details for this callback."
"event": "The event object."
}
},
"onColumnHeaderDoubleClick": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,10 @@
}
},
"onColumnHeaderContextMenu": {
"description": "Callback fired when a double click event comes from a column header element.",
"description": "Callback fired when a contextmenu event comes from a column header element.",
"typeDescriptions": {
"params": "With all properties from GridColumnHeaderParams.",
"event": "The event object.",
"details": "Additional details for this callback."
"event": "The event object."
}
},
"onColumnHeaderDoubleClick": {
Expand Down
5 changes: 2 additions & 3 deletions docs/translations/api-docs/data-grid/data-grid/data-grid.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,10 @@
}
},
"onColumnHeaderContextMenu": {
"description": "Callback fired when a double click event comes from a column header element.",
"description": "Callback fired when a contextmenu event comes from a column header element.",
"typeDescriptions": {
"params": "With all properties from GridColumnHeaderParams.",
"event": "The event object.",
"details": "Additional details for this callback."
"event": "The event object."
}
},
"onColumnHeaderDoubleClick": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -637,10 +637,9 @@ DataGridPremiumRaw.propTypes = {
*/
onColumnHeaderClick: PropTypes.func,
/**
* Callback fired when a double click event comes from a column header element.
* Callback fired when a contextmenu event comes from a column header element.
* @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
* @param {MuiEvent<React.MouseEvent>} event The event object.
* @param {GridCallbackDetails} details Additional details for this callback.
*/
onColumnHeaderContextMenu: PropTypes.func,
/**
Expand Down
3 changes: 1 addition & 2 deletions packages/x-data-grid-pro/src/DataGridPro/DataGridPro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -564,10 +564,9 @@ DataGridProRaw.propTypes = {
*/
onColumnHeaderClick: PropTypes.func,
/**
* Callback fired when a double click event comes from a column header element.
* Callback fired when a contextmenu event comes from a column header element.
* @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
* @param {MuiEvent<React.MouseEvent>} event The event object.
* @param {GridCallbackDetails} details Additional details for this callback.
*/
onColumnHeaderContextMenu: PropTypes.func,
/**
Expand Down
3 changes: 1 addition & 2 deletions packages/x-data-grid/src/DataGrid/DataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -478,10 +478,9 @@ DataGridRaw.propTypes = {
*/
onColumnHeaderClick: PropTypes.func,
/**
* Callback fired when a double click event comes from a column header element.
* Callback fired when a contextmenu event comes from a column header element.
* @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
* @param {MuiEvent<React.MouseEvent>} event The event object.
* @param {GridCallbackDetails} details Additional details for this callback.
*/
onColumnHeaderContextMenu: PropTypes.func,
/**
Expand Down

0 comments on commit c81f2f8

Please sign in to comment.