How to Save the search inputs and page number(state Save) of all of the tables in CoreUI data table
Eg. I search for a postcode, and go onto page 2. When I go back to the table after going onto the customers page, it should take me back to exactly where I left off, which is the search inputs and the page.
First Picture shows when I click on page No. 3 and move to another page or home page and then come back to customers it should return back to page No 3 not page No 1
Use Datatables as reference. This is how it works on the CRM which uses Datatables JS plugin: https://gyazo.com/13152d149f26792a87c9a8e38b0159ab
data: () => {
return {
pageSizes: [10, 50, 100],
items: store,
fields: ['company_name', 'name', 'postal_code', 'phone1', 'phone2', 'email', 'created_at'],
currentPage: 1,
perPage: true,
stateSave: true,
totalRows: 0,
you: null,
message: '',
showMessage: false,
dismissSecs: 7,
dismissCountDown: 0,
showDismissibleAlert: false,
customerModal: false
}
},