Skip to content
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

Merged
merged 11 commits into from
Oct 16, 2024

Conversation

tshimber
Copy link
Contributor

@tshimber tshimber commented Aug 8, 2024

Fixes #2202

Copy link

netlify bot commented Aug 8, 2024

Deploy Preview for marvelous-moxie-a6e2fe ready!

Name Link
🔨 Latest commit 933d4be
🔍 Latest deploy log https://app.netlify.com/sites/marvelous-moxie-a6e2fe/deploys/670ceedfec071600087c20fe
😎 Deploy Preview https://deploy-preview-2335--marvelous-moxie-a6e2fe.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@tshimber tshimber changed the title Feature data grid presort Draft: data grid presort Aug 8, 2024
@tshimber tshimber changed the title Draft: data grid presort data grid presort Aug 9, 2024
@@ -493,6 +503,21 @@ export class DataGrid {
this.activeSortingIndex = -1;
}

presortIfNeeded(): void {
Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed and merged methods

packages/components/src/components/data-grid/data-grid.tsx Outdated Show resolved Hide resolved
@amir-ba amir-ba added the feature New component features and enhancements label Aug 20, 2024
@amir-ba
Copy link
Collaborator

amir-ba commented Aug 29, 2024

We still would need the storybook extension.

@amir-ba
Copy link
Collaborator

amir-ba commented Sep 19, 2024

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

@tshimber
Copy link
Contributor Author

presort example added to doc, visual tests are fine

@amir-ba amir-ba changed the title data grid presort feat(data-grid): adds presort to grid Oct 16, 2024
@amir-ba amir-ba merged commit f657202 into telekom:main Oct 16, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New component features and enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

defaultSorting of scale-data-grid
2 participants