0.2.1 • Published 3 years ago

l-pagination v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

pagination

Demo Pagination-Plugin

Properties

PropertyTypeDefaultRequiredDescription
totalPageNumberTrueTotal number of rows in the dataset
perPageNumberTrueNumber of rows per page
initialPageNumberTrueNumber of rows initial page
pillsBooleanFalseFalseApplies pill styling to the pagination buttons
sizeStringmdFalseSize of the rendered buttons
pageRangeNumber3FalseRange of pages which displayed
breakTextString...FalseText for the break view indicator
marginPageNumber2FalseThe number of displayed pages for margins

Vue

data() {
    return {
            currentPage: 1,
            perPage: 3,
            totalPage: 0,
            pills: false,
            size: "md",
            pageRange: 3,
            marginPages: 2,
            breakText: "...",
        };
},
methods: {
    changePage(page) {
        this.currentPage = page;
    }
}

Props

    <Pagination
      :totalPage="totalPage"
      :perPage="perPage"
      :initialPage="currentPage"
      @changePage="changePage"
      :pills="pills"
      :size="size"
      :pageRange="pageRange"
      :breakText="breakText"
      :marginPages="marginPages"
    />

Emit

<Pagination @changePage="changePage"/>

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

0.2.1

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.0.1

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago