Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 702 Bytes

File metadata and controls

19 lines (16 loc) · 702 Bytes

NavUI

Fast Description

Lightweight javascript pagination tool. Divides a nodelist of HTML items into sereral differents pages of n items through which you can navigate. Choose how many pages button you want to display.

Functions

  1. Jump forward /backward buttons.
  2. Next /Previous buttons.
  3. Clicking on a page displays its content.

How to use

Load NavUI.js Instanciate NavUI class with 4 arguments :

  1. The CSS selector of the items list HTML container (has to exist, create and populate it before)
  2. The CSS selector of the nav ui container (has to exist, create it before)
  3. The number of items you want per page
  4. The number of pages button you want to display within the nav ui