@kano/kwc-pagination
UI for pagination
Last updated 3 months ago by onishiweb .
Original npm · Tarball · package.json
$ cnpm install @kano/kwc-pagination 
SYNC missed versions from official npm registry.

<kwc-pagination>

A configurable page navigation bar.

Installation

Grab it from the NPM repository and add it as a dependency of your project with

yarn add @kano/kwc-pagination

Usage

import '@kano/kwc-pagination/kwc-pagination.js';

html`
    <kwc-pagination jump-controls pagination-controls total-pages="360" current-page="7"></kwc-pagination>
`;

API

The following properties are available:

  • startsOn: A number defining the start page for the navigation bar
  • totalPages: A number defining the total number of pages available
  • currentPage: A number defining the selected page
  • range: A number defining the number of pages to display between the bar controls
  • paginationControls: Turn on or off the next and previous buttons
  • jumpControls: Turn on or off the got to last and got to first buttons
  • lastPage: Turn on or off showing the last page at the end

This element dispatches one event: go-to-page. This event signals that the user chose a page to go to. Use this data to update the selected page

Current Tags

  • 3.3.14                                ...           latest (3 months ago)

9 Versions

  • 3.3.14                                ...           3 months ago
  • 3.0.18                                ...           a year ago
  • 3.0.17                                ...           a year ago
  • 3.0.16                                ...           a year ago
  • 3.0.15                                ...           a year ago
  • 3.0.14                                ...           2 years ago
  • 3.0.12                                ...           2 years ago
  • 3.0.6                                ...           2 years ago
  • 3.0.0-beta.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (4)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |