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

Svelte 5 #97

Closed
xmlking opened this issue May 11, 2024 · 2 comments
Closed

Svelte 5 #97

xmlking opened this issue May 11, 2024 · 2 comments
Milestone

Comments

@xmlking
Copy link

xmlking commented May 11, 2024

Wonder if this library compatible with svelte v5?
Any plans to implement with runes?

@vincjo
Copy link
Owner

vincjo commented Jun 3, 2024

Yes, this lib can be used with Svelte 5.

Full support implementing runes is in progress.
Basically, stores will be replaced by runes, getters() by properties.

Svelte 4

const handler = new DataHandler(data)
const rows = handler.getRows()
const currentPage = handler.getCurrentPage()
// $rows, $currentPage

Svelte 5

const table = new TableHandler(data)
// table.rows, table.currentPage

@vincjo vincjo added this to the 2.0 milestone Jun 5, 2024
@vincjo
Copy link
Owner

vincjo commented Jun 6, 2024

Added a note to the readme and published a preview site.

@vincjo vincjo closed this as completed Jun 6, 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

No branches or pull requests

2 participants