diff --git a/src/views/paginator/PaginatorDoc.vue b/src/views/paginator/PaginatorDoc.vue index 13ed5816c..2e2457ae3 100644 --- a/src/views/paginator/PaginatorDoc.vue +++ b/src/views/paginator/PaginatorDoc.vue @@ -8,21 +8,31 @@ import Paginator from 'primevue/paginator';
first, rows and totalRecords are the required properties of the Paginator.
+rows and totalRecords are the required properties of the Paginator.
first property defines the index of the first item displayed by the paginator and should be used with the sync operator. - This is useful in cases where the paginator needs to be controlled programmatically such as resetting or navigating to a certain page.
+first property defines the index of the first item displayed by the paginator.
+ +Use the sync operator to enable two-way binding, this is useful in cases where you need to programmatically control the paginator.
Number of items per page can be changed by the user using a dropdown with the rowsPerPageOptions property which accepts an array of possible values. - As rows also change when the dropdown changes, use the sync operator for two-way binding.
+Number of items per page can be changed by the user using a dropdown with the rowsPerPageOptions property which accepts an array of possible values.
+As rows also change when the dropdown changes, use the optional sync operator if you need two-way binding.
+There are two slots available named "left" and "right" to add custom content to these locations. Both slots get +
There are two templates available named "left" and "right" to add custom content to these locations. Both templates get a state object as a slot property to provide the current page, first index and the rows.
Paginator provides only one event called page-change that passes all the information about the change event.