-
-
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
[docs] Improve GridApi
descriptions
#1767
Conversation
packages/grid/_modules_/grid/models/api/gridVirtualizationApi.ts
Outdated
Show resolved
Hide resolved
packages/grid/_modules_/grid/models/api/gridPreferencesPanelApi.ts
Outdated
Show resolved
Hide resolved
*/ | ||
getEditCellValueParams: (rowId: GridRowId, field: string) => GridEditCellValueParams; | ||
/** | ||
* Commit the cell value changes to update the cell value. | ||
* @param update | ||
* @ignore - do not document | ||
*/ | ||
commitCellChange: (params: GridEditCellPropsParams) => void; |
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.
I don't see a rationale to expose this method in the API. Although used in this demo, the same thing can be done with apiRef.current.setCellValue
.
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.
@m4theushw From what I understand of the initial terminology: "commit" value means that the value is stored and will be taken part of the ctrl + z, ctrl + alt + z history feature. "set" value means that the value is only locally updated without updating the underlying rows. I would personally do the opposite, kill setCellValue
.
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 there would be a history feature then makes sense to have the "commit". I added the ignore to setCellValue
for now.
Co-authored-by: Olivier Tassinari <[email protected]>
GridApi
descriptionsGridApi
descriptions
Breaking changes
[XGrid] The
getEditCellValueParams
method was removed from theapiRef
([docs] ImproveGridApi
descriptions #1767) @m4theushwThe method was almost a straightforward alias of
getEditCellPropsParams
.Fixes #1705
Also adds missing prefixes, like #1705 (comment).