Util.Pad - shysolocup/noscord.js GitHub Wiki

creates a new paged list
type: AeplSubClass

arguments:

  • per Number: how many entries should be included per page
  • object Array/Object
  • start Number: what page it starts on

let pad = new util.Pad(2, [ "a", "b", "c", "d" ]);

console.log(pad.current); // ["a", "b"]

pad.next();

console.log(pad.current); // ["c", "d"]

Properties

Functions

🛈 current 🛈 next()
🛈 pages 🛈 prev()
🛈 length 🛈 to()
🛈 page 🛈 get()
🛈 contents


⚠️ **GitHub.com Fallback** ⚠️