Skip to content

How to reset DataTable to first page. #3377

Closed Answered by renewestenberg
renewestenberg asked this question in PrimeVue
Discussion options

You must be logged in to vote

Soved this by adding a firstRow variable and setting this to the DataTable first property. Then capturing the @page event and getting the current first row value from the event.

<Datatable :first="firstRow" @page="$_onPagination">

$_onPagination(event) {
this.firstRow=event.first;
}

Now we can update firstRow at wish .

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by renewestenberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant