Is it possible to change dynamically to show all the rows of a data table and then again switch back to default, let's say the default is 50?
My task is-
Users want to export data to excel in the order where multiple columns are sorted. This was possible by manipulating the DOM but not possible if there are rows more than the default one.
So to do that, the user has to select ALL
rows first in the footer to export all rows in excel, else it will export only the default 50 rows.
My idea is-
When a user clicks on the export button, it should dynamically change it to ALL
rows and when export is completed, switch back the rows to the default which is 50.
well, I figured it out in the documentation by reading the answer from @Neha, this prop needs to be in sync to have any changes to it and this can be done with .sync modifier. The only thing we need to add .sync after the prop like :items-per-page.sync, see code below:
In template
In script