WIP: v3.4.0 #25
@ -1,5 +1,5 @@
|
||||
module.exports = (collection, page) => {
|
||||
const itemsPerPage = 10;
|
||||
module.exports = (collection, page, qty) => {
|
||||
const itemsPerPage = qty ? qty : 10;
|
||||
const index = page * itemsPerPage;
|
||||
const totalPages = Math.ceil(collection.size / itemsPerPage);
|
||||
let state = page === 0 ? 'first' : 'middle';
|
||||
|
Loading…
Reference in New Issue
Block a user