# gPagesJS

> A component ES6 for paginations in Javascript

Latest version **1.0.2** (published 2017-01-21) · 0 weekly downloads

## Install

```sh
npm install gPagesJS
pnpm add gPagesJS
yarn add gPagesJS
bun add gPagesJS
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-01-21 |
| First published | 2016-11-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Gabriel Martinez Sandino |
| Maintainers | gdmartinez93 |
| Keywords | jquery, plugin, paginations, javascript |

## Links

- npm: https://www.npmjs.com/package/gPagesJS
- Repository: https://github.com/gdmartinez93/gPageJS
- Homepage: https://github.com/gdmartinez93/gPageJS#readme
- Issues: https://github.com/gdmartinez93/gPageJS/issues
- npm.io page: https://npm.io/package/gPagesJS

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-01-21
- 1.0.1 — 2016-11-15
- 1.0.0 — 2016-11-15

## README

gPages JS
===================


Is a version Component building with ES6

----------

### New Features

> **27/01/2017** - New properties in options configuration object. **"pagesPrevView"**  :  **Number** Define items show to prev active item in paginator.  **"pagesNextView"**  :  **Number** Define items show to next active item in paginator.  **"classContainerPage"**  :  **String** Define custom css class for each containerPage.

### Options

**Object options** has multiple options of configuration

Option                           | Description
---------------------------------| -------------------------------
item                             | **String** Is the selector element
itemsPerPage                     | **Number** Define quantity items for to show in for each gPage
classContainerPage               | **String** Define custom css class for each containerPage.
prevText                         | **String** Define custom text in prev element in paginator. If is empty not appear nothing
nextText                         | **String** Define custom text in next element in paginator. If is empty not appear nothing
prevSrc                          | **String** Define custom src in prev element in paginator. This src will appear on a tag **< img >**
nextSrc                          | **String** Define custom src in next element in paginator. This src will appear on a tag **< img >**
loader                           | **String** Define a loader from to this list [loders](https://codepen.io/gdmartinez93/pen/pRPyoR)
pagesPrevView                    | **Number** Define items show to prev active item in paginator.
pagesNextView                    | **Number** Define items show to next active item in paginator.
pageChange                       | **Event** Is a callback function is ocurred will a page is changed


### Examples code

This is a example defiintion options configurations, for initialize gPagesJS:

```
// options of configuration for pagination
let pagination = new gPages( '#element', 
    {
        item: '.element',
        itemsPerPage: 5,
        loader: 'dots',
        prevText: '',
        prevSrc: '/images/icons/arrow_pagination.svg',
        nextText: '',
        nextSrc: '/images/icons/arrow_pagination.svg',
        pagesPrevView: itemsInPagination,
        pagesNextView: itemsInPagination,
        pageChange: function () {
            alert('Page is changed!');
        }
    }
);
```

### Table of contents

---
_Source: https://npm.io/package/gPagesJS · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
