-
Notifications
You must be signed in to change notification settings - Fork 82
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
feat(data-grid): adds presort to grid #2335
Conversation
✅ Deploy Preview for marvelous-moxie-a6e2fe ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -493,6 +503,21 @@ export class DataGrid { | |||
this.activeSortingIndex = -1; | |||
} | |||
|
|||
presortIfNeeded(): 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.
Better call the fn preSort
the if needed part is implied
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.
renamed and merged methods
e3ad6e5
to
302559b
Compare
We still would need the storybook extension. |
a storybook example for this would be nice, and you might need to merge the main branch in the branch to fix the visual tests |
presort example added to doc, visual tests are fine |
Fixes #2202