0.0.5 • Published 9 months ago

@cromarmot/pagination v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

pagination

Stop using pagination 1 2 3 4 5 6...

use pagination 1 2 4 8 16... right now !

Online Demo

https://jvgcv.csb.app/

https://codesandbox.io/s/paginationdemo-jvgcv?file=/src/App.vue

Install

yarn add @cromarmot/pagination

Usage

import {Pagination} from '@cromarmot/pagination';
const pm = new Pagination();

console.log(pm.setRange(1, 1000, 1));

console.log(pm.setRangeCurrent(50));

console.log(pm.setArray(['hey','hello','what','hi','test'],0));

console.log(pm.setArrayIndex(4));

APIs

current()

setRange(rangeStartInteger,rangeEndInteger,rangeCurrentInteger)

setRangeCurrent(rangeCurrentInteger)

setArray(any[],index)

setArrayIndex(index)

Test

yarn test

Examples

https://atcoder.jp/ranking

0.0.3

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.2

4 years ago

0.0.1

4 years ago