state-save and state-restore events for Table #850
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
vue2-portable
Milestone
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.The text was updated successfully, but these errors were encountered: