blob: 8b52f8ba2622d6e0d7467d4a743e809eb8996a3b [file] [log] [blame]
Yoshie Muranakaf9832b02020-05-12 12:04:46 -07001const BVPaginationMixin = {
2 data() {
3 return {
4 currentPage: 1,
5 perPage: 20,
6 itemsPerPageOptions: [
7 {
8 value: 10,
Derick Montague602e98a2020-10-21 16:20:00 -05009 text: '10',
Yoshie Muranakaf9832b02020-05-12 12:04:46 -070010 },
11 {
12 value: 20,
Derick Montague602e98a2020-10-21 16:20:00 -050013 text: '20',
Yoshie Muranakaf9832b02020-05-12 12:04:46 -070014 },
15 {
16 value: 30,
Derick Montague602e98a2020-10-21 16:20:00 -050017 text: '30',
Yoshie Muranakaf9832b02020-05-12 12:04:46 -070018 },
19 {
20 value: 40,
Derick Montague602e98a2020-10-21 16:20:00 -050021 text: '40',
Yoshie Muranakaf9832b02020-05-12 12:04:46 -070022 },
23 {
24 value: 0,
Derick Montague602e98a2020-10-21 16:20:00 -050025 text: this.$t('global.table.viewAll'),
26 },
27 ],
Yoshie Muranakaf9832b02020-05-12 12:04:46 -070028 };
29 },
30 methods: {
31 getTotalRowCount(count) {
32 return this.perPage === 0 ? 0 : count;
Derick Montague602e98a2020-10-21 16:20:00 -050033 },
34 },
Yoshie Muranakaf9832b02020-05-12 12:04:46 -070035};
36
37export default BVPaginationMixin;