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

data grid presort #2335

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

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 22b905a
🔍 Latest deploy log https://app.netlify.com/sites/marvelous-moxie-a6e2fe/deploys/66d071a3bc3de00008fb1f5b
😎 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

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