-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core] Add typing to the details argument #2512
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some props are missing the details
argument in the markdown, but I would not spend spend too much time trying to keep the docs up-to-date with the actual code. The documentation for the components is almost done in #2465.
| <span class="prop-name">onCellDoubleClick</span> | <span class="prop-type">(params: GridCellParams, event: MuiEvent<React.MouseEvent>, details?: any) => void</span> | | Callback fired when a double click event comes from a cell element. | | ||
| <span class="prop-name">onCellBlur</span> | <span class="prop-type">(params: GridCellParams, event: MuiEvent<React.FocusEvent>, details: GridCallbackDetails) => void</span> | | Callback fired when the active element leaves a cell. | | ||
| <span class="prop-name">onCellClick</span> | <span class="prop-type">(params: GridCellParams, event: MuiEvent<React.MouseEvent>, details: GridCallbackDetails) => void</span> | | Callback fired when a click event comes from a cell element. | | ||
| <span class="prop-name">onCellDoubleClick</span> | <span class="prop-type">(params: GridCellParams, event: MuiEvent<React.MouseEvent>, details: GridCallbackDetails) => void</span> | | Callback fired when a double click event comes from a cell element. | | ||
| <span class="prop-name">onCellFocusOut</span> | <span class="prop-type">(params: GridCellParams, event?: MuiEvent<MouseEvent>) => void</span> | | Callback fired when a cell loses focus. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The details
argument is missing here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If #2465 is almost done, can we not add it manually on this PR ?
details
argument from the typing ofisCellEditable
,isRowSelectable
,getClassClassName
andgetRowClassName
(it is not passed to those callbacks)details
argument of the other callbacks