GithubHelp home page GithubHelp logo

vue-pageman's Introduction

vue-pageman

a vue pagination component, modified from jquery pagination

Install

npm install vue-pageman -S

yarn add vue-pageman

Quickstart

require('vue-pager/dist/vue-pageman.css');

// in ES6 modules
import { pager } from 'vue-pageman';

// in CommonJS
const { pager } = require('vue-pageman');

// in Global variable
const { pager } = VuePageman;

Vue.component('c-pager',pager);
<c-pager :total="total" :pageSize="10" 
         :num-display-entries="4" :num-edge-entries="1" 
         :current-page="0"></c-pager>

Params

props

  • maxentries item's total count required,Number
  • items-per-page item's count per page optional,default is 10
  • num-display-entries item's count in center area optional,defalut is 10
  • cur-page current selected page optional,default is 0,representing first page
  • num-edge-entries item's count in both sides optional,default is 0
  • link-to page item's link String,optional,default is "#"
  • prev-text pre page button's text String,optional,default is "Prev"
  • next-text next page button's text String,optional,default is "Next"
  • ellipse-text ellipsis text on not showing pages optional,default is "..."
  • prev-show-always whether to show pre button Boolean,optional,default is true
  • next-show-always whether to show next button Boolean,optional,default is true
  • callback callback function default is no return value

Preview

pager image

vue-pageman's People

Contributors

ygtzz avatar

Watchers

 avatar

Forkers

enterpriseih

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.