Skip to content

delpikye-v/vue-paging-simple

Repository files navigation

vue-paging-simple

vue-paging-simple

LIVE EXAMPLE

Version: 1.0.0

Usage

Install the package

    npm install vue-paging-simple

Import the module in the place you want to use:

    import SimplePaging from 'vue-paging-simple'

Wrap you content in this component:

Snippet

    <SimplePaging
        :totals="200"
        :limit="10"
        :section="5"
        v-model="currentPage"
    />
    // display 10 line/page,  5 page/section

Props

The following props are accepted:

totals

Total record (Number)

limit

Number data in page. Default 10

section

Number section in display. Default 5

Example: 1 2 3 4 5 > >>

v-model

Current page

License

MIT