@lion/pagination
TypeScript icon, indicating that this package has built-in type declarations

0.9.1 • Public • Published

Pagination >> Overview ||10

A web component that handles pagination.

import { html } from '@mdjs/mdjs-preview';
import '@lion/pagination/define';
export const main = () => html` <lion-pagination count="20" current="10"></lion-pagination> `;

Features

  • You can pass the total number of pages in the count parameter, and the current page in the current parameter. If current is not defined it will default to the value 1.
  • On a click or parameter change of current it will fire an event back called current-changed.

Installation

npm i --save @lion/pagination
import { LionPagination } from '@lion/pagination';
// or
import '@lion/pagination/define';

Package Sidebar

Install

npm i @lion/pagination

Weekly Downloads

661

Version

0.9.1

License

MIT

Unpacked Size

54.1 kB

Total Files

43

Last publish

Collaborators

  • tlouisse
  • narzac
  • d4kmor