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

Add SortState type, getCurrentSortState and setCurrentSortState #27

Closed
wants to merge 3 commits into from

Conversation

dskvr
Copy link

@dskvr dskvr commented Dec 16, 2024

resolves #26

Didn't use accessors because I noticed zero accessors in your codebase.

Copy link

vercel bot commented Dec 16, 2024

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

Name Status Preview Comments Updated (UTC)
svelte-data-table ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 18, 2024 11:21pm

@dskvr dskvr changed the title Add SortState type, getSortState and setSortState Add SortState type, getCurrentSortState and setCurrentSortState Dec 18, 2024
@dskvr
Copy link
Author

dskvr commented Dec 19, 2024

Didn't notice there was already a getSortState getter somehow, changed signature of getter/setter.

Copy link

@j1ands j1ands left a comment

Choose a reason for hiding this comment

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

The sortState can be already be publicly accessed.

With regard to the setter you've added, you can already set persisted sort data when you initially construct the DataTable instance by providing sort values inside the TableConfig parameter.

@dskvr dskvr closed this Dec 30, 2024
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.

Table State Persistance - sortState
2 participants