Pagination & Info
Last updated
Last updated
Pagination component is built based on Bootstrap 4 pagination template. You can enable or disable pagination and pagination info details based on your choice.
Attributes | Description | type | Default |
pagination | Enable/Disable pagination in the table | Boolean | true |
pagination_info | Enable/Disable pagination info in the table | Boolean | true |
num_of_visibile_pagination_buttons | Limit the number of visible pagination buttons in the pagination bar | Number | 5 |
per_page | Number of rows to display per page | Number | 10 |
per_page_options | List of options to choose how many rows being showed in single page | Array of numbers | [5,10,15] |
selected_rows_info | Enable/Disable number of rows being selected info in the table | Boolean | false |
Currently you can override "Previous" & "Next" button icon/text.
After applying the above custom template to previous
and next
button, pagination component will look like this.
After applying the above custom template to pagination info , pagination info component will look like this.
From slot-scope="props"
you can access the following attributes.
Attributes | Description |
props.currentPageRowsLength | Number of rows currently showing in the page |
props.filteredRowsLength | Total number of items in the result after filtering |
props.originalRowsLength | Original number of items in the data |
From slot-scope="props"
you can access the following attributes.
Attributes | Description |
props.selectedItemsCount | Number of rows currently being selected |