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

state-save and state-restore events for Table #850

Closed
chrisnoden opened this issue Jan 12, 2021 · 0 comments
Closed

state-save and state-restore events for Table #850

chrisnoden opened this issue Jan 12, 2021 · 0 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add vue2-portable
Milestone

Comments

@chrisnoden
Copy link

When returning to a page with a Lazy loaded DataTable that has stored it's state, there is no way to fetch the correct data from the server.

eg.
If the DataTable has remembered it's on page 5, you leave the page, return to the page later (or just hit reload on the browser) and the DataTable pagination shows you are on the remembered page 5- but the lazy loading of the remote data has loaded the default results (page 1).

I propose an event is emitted by the DataTable once it has retrieved the state. The state params should be included in the emitted parameters (same as the onPage event). IF there is no stored state, the params can either be null (leaving it for the implementation to establish the default) or they can return the defaults as defined by the props.

@cagataycivici cagataycivici self-assigned this Jan 20, 2021
@cagataycivici cagataycivici added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Jan 20, 2021
@cagataycivici cagataycivici added this to the 3.2.0-rc.1 milestone Jan 20, 2021
@cagataycivici cagataycivici changed the title Lazy loaded DataTable should fire an event when state is loaded state-save and state-restore events for Table Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add vue2-portable
Projects
None yet
Development

No branches or pull requests

2 participants