blob: 0bdf3687ed65e93304c9ab290cb49d52093f2f0a [file] [log] [blame]
Ed Tanous7d6b44c2024-03-23 14:56:34 -07001//import i18n from '@/i18n';
SurenNewareba91c492020-10-27 14:18:54 +05302export const currentPage = 1;
3export const perPage = 20;
4export const itemsPerPageOptions = [
5 {
6 value: 10,
7 text: '10',
Yoshie Muranakaf9832b02020-05-12 12:04:46 -07008 },
SurenNewareba91c492020-10-27 14:18:54 +05309 {
10 value: 20,
11 text: '20',
12 },
13 {
14 value: 30,
15 text: '30',
16 },
17 {
18 value: 40,
19 text: '40',
20 },
21 {
22 value: 0,
Ed Tanous7d6b44c2024-03-23 14:56:34 -070023 //text: i18n.$t('global.table.viewAll'),
24 text: 'global.table.viewAll',
SurenNewareba91c492020-10-27 14:18:54 +053025 },
26];
27const BVPaginationMixin = {
Yoshie Muranakaf9832b02020-05-12 12:04:46 -070028 methods: {
29 getTotalRowCount(count) {
30 return this.perPage === 0 ? 0 : count;
Derick Montague602e98a2020-10-21 16:20:00 -050031 },
32 },
Yoshie Muranakaf9832b02020-05-12 12:04:46 -070033};
34
35export default BVPaginationMixin;