752 B
752 B
Navigation >> 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
countparameter, and the current page in thecurrentparameter. Ifcurrentis not defined it will default to the value 1. - On a click or parameter change of
currentit will fire an event back calledcurrent-changed.
Installation
npm i --save @lion/pagination
import { LionPagination } from '@lion/pagination';
// or
import '@lion/pagination/define';