Commit 936988a3 authored by Mat's avatar Mat

pagination wip.. calcule le nbre de pages en fonction du step choisi(select)

parent 31a3a3ca
......@@ -230,6 +230,13 @@
let perPage = paginate.step;
console.log('parPage:' + perPage + ' total:' + total);
if (total > perPage) {
let nbPages = total % perPage;
console.log(nbPages + ' pages');
} else {
let nbPages = 1;
console.log(nbPages + ' seule page');
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment