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

Hds::Table - Add onSort callback #1080

Merged
merged 4 commits into from
Jan 18, 2023
Merged

Hds::Table - Add onSort callback #1080

merged 4 commits into from
Jan 18, 2023

Conversation

didoo
Copy link
Contributor

@didoo didoo commented Jan 18, 2023

📌 Summary

While working on an example of a sortable Hds::Table with pagination (#1060) I realized we never added a callback to the "sort" event, that could be used by the consumers (eg. to persist the sorting values in the URL).

This PR address this missing piece.

🛠️ Detailed description

In this PR I have:

  • added the onSort callback to the Hsd::Table component
  • updated documentation (new and old)
  • added integration tests for onSort

👀 Reviewer's checklist:

  • +1 Percy if applicable
  • Confirm that PR has a changelog update via Changesets if needed

💬 Please consider using conventional comments when reviewing this PR.

@didoo didoo requested review from alex-ju and MelSumner January 18, 2023 11:03
@vercel
Copy link

vercel bot commented Jan 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
hds-components ✅ Ready (Inspect) Visit Preview Jan 18, 2023 at 11:03AM (UTC)
hds-flight-website ✅ Ready (Inspect) Visit Preview Jan 18, 2023 at 11:03AM (UTC)
hds-website ✅ Ready (Inspect) Visit Preview Jan 18, 2023 at 11:03AM (UTC)

Copy link
Contributor

@MelSumner MelSumner left a comment

Choose a reason for hiding this comment

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

Thank you for taking care of this!

@didoo didoo merged commit 8ab01ed into main Jan 18, 2023
@didoo didoo deleted the table-on-sort branch January 18, 2023 17:50
@hashibot-hds hashibot-hds mentioned this pull request Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants