Somewhat light jQuery pagination plugin thing.

Overview

jq-paginator

Somewhat light jQuery pagination plugin thing. Inspired by other pagination libraries, but hopefully a bit simpler.

Usage

Pass options as an object of options to initialise a paginator.

  • data: Required Function, or array of data.
  • itemsPerPage: Number items per page of results.
  • buttonText: Array of two values, corresponding to each of prev and next buttons text values.
  • showNumbers: Bool has numbers to click to page.
  • showButtons: Bool has previous/next buttons.
  • showInput: Bool has an input to type in.
  • numberMargin: Number of numbers to show surrounding active page.
  • render: Required Function to use for rendering data. (Required)

When initialising, at least one of the options of showNumbers, showButtons, and showInput should be given. This is because without one of these, you don't have any element to interact with the paginator.

Options can also be one of the following:

  • "destroy": Removes paginator and all events.
  • "reload": Destroys paginator and reinitialises.
  • "goto": Go to a specified page number. (In case you want something custom)
  • "getPage": Get the current page number. (Will only use the first found paginator in selector)

Events

The paginator has several events that under certain circumstances.

Firstly, before-paging is fired on the pagination element when a page is attempted navigation to.

Then, after-paging is fired on the pagination element after the render function given is called. (Triggered in the done callback.)

Additionally, destroy-paging is fired when a pagination element is destroyed via $('.selector').jqpagination('destroy'). This can be used to cleanup content generated from render functions.

You might also like...

LazyLoad Embed YouTube Player - simple and lightweight plugin - pure JavaScript

LazyLoad Embed YouTube Player - simple and lightweight plugin - pure JavaScript

Youtube LazyLoad LazyLoad Embed Youtube Player - simple and lightweight plugin - pure JavaScript Status View Preview Table of contents Status Quick St

Nov 29, 2022

LazyLoad Embed Vimeo Player - simple and lightweight plugin - pure JavaScript

LazyLoad Embed Vimeo Player - simple and lightweight plugin - pure JavaScript

Vimeo LazyLoad LazyLoad Embed Vimeo Player - simple and lightweight plugin - pure JavaScript Status View Preview Table of contents Status Quick Start

Nov 3, 2022

Music control plugin for decky-loader.

MusicControl Music control plugin for decky-loader. Usage MusicControl allows you to control any playing media that implements the MediaPlayer2.Player

Dec 16, 2022

Pagination Manager is an useful framework for improving the use of object pagination in APIs like Discord.

Pagination Manager is an useful framework for improving the use of object pagination in APIs like Discord.

Pagination Manager Pagination Manager is an useful framework for improving the use of object pagination in APIs like Discord. Lightweight module, ES6

Jul 26, 2022

we try to make a tiny p2p client spec, maybe for sigchain gossip thing, maybe for simple blockchain thing

mininode Mininode is a tiny p2p client for prototyping p2p protocols. It is a specification for a set of interfaces that I made to make it easier to t

Nov 23, 2022

A browser/Chrome extension that replaces Leftist #trigger words with "bad thing" and "current bad thing". Inspired by Tim Pool.

BadThings browser/Chrome extension replaces Leftist #trigger words with 'bad things' and 'current bad thing'. Quickstart This project uses React 18 an

Sep 5, 2022

A jQuery plugin for making html tables searchable and sortable with pagination

jQuery.fancyTable A jQuery plugin for making html tables searchable and sortable with pagination. Live demo See a live demo on CodePen Installation Us

Dec 19, 2022

JQuery-TableToExcel - Light weight jQuery plugin for export HTML table to excel file

tableToExcel Light weight jQuery plugin for export table to excel file Demos Website and demo here: http://tanvirpro.com/all_project/jQueryTableToExce

May 8, 2022

A light-weight, customizable lightbox plugin for jQuery

About Colorbox: A customizable lightbox plugin for jQuery. See the project page for documentation and a demonstration, and the FAQ for solutions and e

Dec 29, 2022

Easily add filtering, sorting, and pagination to your Node.js REST API through your old friend: the query string!

QueryQL QueryQL makes it easy to add filtering, sorting, and pagination to your Node.js REST API through your old friend: the query string! Read our i

Dec 27, 2022

Djs-paginate - Simpler discord.js v13 embed pagination tool

djs-paginate Simpler discord.js v13 embed pagination tool inspired by discordjs-button-pagination. Installation npm install @eugabrielsilva/djs-pagina

Jan 4, 2022

A simple yet powerful discord.js embed pagination package.

A simple yet powerful discord.js embed pagination package.

Pagination.djs A discord.js compatible pagination module. It's a simple and lightweight module to paginate discord embeds. Read docs here: pagination.

Nov 9, 2022

πŸ“„ Easily implement pagination into your Knex.js project.

knex-pagination Easily implement pagination into your application. Usage const knex = require('knex'); const paginate = require('knex-pagination'); co

Apr 16, 2022

🧬 A type builder for pagination with prisma and type-graphql.

🧬 Prisma TypeGraphql Pagination Prisma TypeGraphql Pagination builds prisma pagination types for type-graphql. import { ... } from 'type-graphql'

Apr 21, 2022

Holy Qur'an Telegram Bot with pagination and audio, in Indonesian language.

Holy Qur'an Telegram Bot with pagination and audio, in Indonesian language.

quran-telegram-bot Contributions are Welcome! Demo @fio_quran_bot Run Tested on Node.js v14.x.x with NPM v6.x.x, Windows 10 and Ubuntu 18.04.6 LTS. Cr

Oct 21, 2022

A simple javascript library for pagination, compatible with Bootstrap.

A simple javascript library for pagination, compatible with Bootstrap.

Easy Pagination JS A simple library for pagination, compatible with Bootstrap. Check my website here. Demo Check this Demo here. Example Import the fi

Aug 5, 2022

A handler to create embedded pages with buttons for pagination.

➝ Whats that β€’ A handler to create embedded pages with buttons for pagination. ➝ Requirements β€’ ["Handler"] pages.js β€’ [Example command] embed.js ➝ Us

Oct 30, 2022

URL Shortener API in NodeJS supporting pagination, sort params and lot more

URL Shortener API in NodeJS supporting pagination, sort params and lot more

node-url-shortener Built with ❀️ in NodeJS A simple URL Shortner REST API that uses shortid npm package to generate short endpoints for your long URL.

Sep 22, 2022

Simple and easy-to-use pagination library for Mongoose (Node.js)

Simple and easy-to-use pagination library for Mongoose (Node.js)

node-paginator Simple and easy-to-use pagination library for Mongoose (Node.js) πŸ“š Why node-paginator? Every web developer should work on pagination a

Sep 21, 2022
Owner
null
A super light, fast and simple tho advanced Music Bot

A super light, fast and simple tho advanced Music Bot, without any Music Manager Packages like Lavalink, discord-player or distube. Technically providing up to all filters of lavalink, but limited to 19 predefined ones, with speed and bassboost control, as well as everything in slash Commands and message Commands!

Tomato6966 43 Dec 17, 2022
A lightweight, easy-to-use jQuery plugin for fluid width video embeds.

Introducing FitVids.js A lightweight, easy-to-use jQuery plugin for fluid width video embeds. FitVids automates the Intrinsic Ratio Method by Thierry

Dave Rupert 4.8k Dec 24, 2022
A tiny jQuery plugin for truncating multiple lines of text

Succinct A tiny jQuery plugin for truncating multiple lines of text How does it work? Succinct shortens your text to a specified size, and then adds a

Mike King 482 Jan 2, 2023
jPlayer : HTML5 Audio & Video for jQuery

jPlayer : HTML5 Audio & Video for jQuery Gitter Support for Zepto 1.0+ compiled with the data module. What is jPlayer? jPlayer is a jQuery/Zepto plugi

jPlayer 4.6k Dec 27, 2022
JavaScript plugin for playing sounds and music in browsers

JavaScript plugin for playing sounds on user actions and page events. Version: 3.0.7 Project page and demos Download ZIP Support the plugin on GitHub

Denis Ineshin 704 Sep 24, 2022
A Cockpit plugin to easily manage samba and NFS file sharing.

cockpit-file-sharing A Cockpit plugin to easily manage samba and NFS file sharing. Table of Contents General Features Samba Manager Screenshot NFS Man

45Drives 190 Jan 3, 2023
An Betterdiscord plugin that gives the capability to the user send all discord stickers, expect wumpus default stickers.

allstickersexpectwumpusstickers An Betterdiscord plugin that gives the capability to the user send all discord stickers, expect wumpus default sticker

null 2 May 23, 2022
An open source Javascript framework for detecting the Adobe Flash Player plugin and embedding Flash (swf) files.

β€” IMPORTANT UPDATE β€”ΒΆ ↑ SWFObject is no longer in active development. Flash Player is on the decline, and the authors of SWFObject have moved on to ot

null 1.2k Nov 27, 2022
AutoScroll is a plugin for BetterDiscord that brings the mouse wheel button autoscroll feature to the GNU/Linux and macOS client.

AutoScroll AutoScroll is a plugin for BetterDiscord that brings the mouse wheel button autoscroll feature to the GNU/Linux and macOS client. This plug

Luna 12 Dec 14, 2022
A BetterDiscord plugin for showing what you're listening from Last.fm.

LastFMRichPresence BetterDiscord Plugin This plugin allows you to show what you're listening via Last.fm. You can set it up for Soundcloud, Youtube Mu

dimden 9 Dec 16, 2022