All Projects → sant123 → vuejs-uib-pagination

sant123 / vuejs-uib-pagination

Licence: MIT License
Best and complete pagination plugin for Vue.js. Inspired in Angular Bootstrap Pagination.

Programming Languages

typescript
32286 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vuejs-uib-pagination

basic-transport-info-app
A progressive web app to show direct & indirect buses / transport between two places / cities / stops .Show next schedule & travel duration. Algorithm to calculate indirect buses on basis of their schedule time. Voice search . Locate nearest city/stop by gps. Bus timetable.
Stars: ✭ 12 (-79.31%)
Mutual labels:  vuejs2
vue-notification-bell
Vue.js notification bell component.
Stars: ✭ 64 (+10.34%)
Mutual labels:  vuejs2
you-can-quit
A tool to support your progress in quitting whatever your bad habit is.
Stars: ✭ 56 (-3.45%)
Mutual labels:  vuejs2
v-lazy-img
simplistic vue.js directive for image lazy loading
Stars: ✭ 25 (-56.9%)
Mutual labels:  vuejs2
shopify-storefront-vue-apollo
Vue.js/Apollo version of Shopify storefront-api-examples in a Laravel project
Stars: ✭ 30 (-48.28%)
Mutual labels:  vuejs2
quiplash
Quiplash replacement
Stars: ✭ 25 (-56.9%)
Mutual labels:  vuejs2
jooger.me
👍 My personal website,powered by @nuxt
Stars: ✭ 39 (-32.76%)
Mutual labels:  vuejs2
vue-sauce
"View source" directive for Vue
Stars: ✭ 90 (+55.17%)
Mutual labels:  vuejs2
yoma
一个小而美的低代码全栈开发平台,一键生成后端api接口+前端页面代码+在线接口文档,节省50%的前后端开发的工作量。基于springboot +mybatis+spring security+vue 技术栈
Stars: ✭ 137 (+136.21%)
Mutual labels:  vuejs2
myblog
前端部分使用vue2.0-vuex-webpack-md编辑器,后端使用golang的beego框架的个人博客网站。代码中实际分为2个工程,beego和vue工程。部署将webpack打包后文件放在beego工程中。前后端路由分离。
Stars: ✭ 30 (-48.28%)
Mutual labels:  vuejs2
nuxt-blog
A Nuxt.js server side rendered blog app
Stars: ✭ 59 (+1.72%)
Mutual labels:  vuejs2
notes
📗 ✂️ Notes app written in Vue.js
Stars: ✭ 16 (-72.41%)
Mutual labels:  vuejs2
elekid
Resolver for React's Server Side Render on Module, ReactElement or Electron
Stars: ✭ 21 (-63.79%)
Mutual labels:  vuejs2
social-network
Social Network made with Laravel + Vue + Love implementing TDD and Laravel Dusk tests
Stars: ✭ 25 (-56.9%)
Mutual labels:  vuejs2
gpkeditor
markdown editor with peg.js
Stars: ✭ 15 (-74.14%)
Mutual labels:  vuejs2
vue-startup
A template with webpack 4 + vuejs 2 + + babel 7 setup for projects startup
Stars: ✭ 44 (-24.14%)
Mutual labels:  vuejs2
vue-jekyll
This Repo is a bare-bones template for building static sites that leverage a client-side JS framework for dynamic functionality.
Stars: ✭ 84 (+44.83%)
Mutual labels:  vuejs2
vue2-calendar
A lightweight calendar component for Vue2
Stars: ✭ 54 (-6.9%)
Mutual labels:  vuejs2
munhasir
Sample RESTful single page web app with Go, MongoDB and VueJS. A platform for keeping diaries for those who are cautious(or paranoid).
Stars: ✭ 24 (-58.62%)
Mutual labels:  vuejs2
skr
🏆 Blog with manager (vue&ssr)
Stars: ✭ 16 (-72.41%)
Mutual labels:  vuejs2

vuejs-uib-pagination

Best and complete pagination plugin for Vue.js 2.0. Inspired in Angular Bootstrap Pagination.

Not Using Bootstrap?

No problem! The plugin template is not 100% Bootstrap dependent, that is why you can build your own styles for your pagination!

Demo

Click here.

Installation

$ npm install vuejs-uib-pagination

Quick Start

Global:

<script src="node_modules/vue/dist/vue.js"></script>
<script src="node_modules/vuejs-uib-pagination/dist/vuejs-uib-pagination.js"></script>

CommonJS:

var Vue = require("vue");
var pagination = require("vuejs-uib-pagination");

Vue.use(pagination);

ES2015:

import * as Vue from "vue";
import pagination from "vuejs-uib-pagination";

Vue.use(pagination);

Use

HTML:

<div id="app">
    <div is="uib-pagination" v-model="pagination" :total-items="22"></div>
    <!-- or -->
    <uib-pagination v-model="pagination" :total-items="22"></uib-pagination>
</div>

Script:

var app = new Vue({
    el: "#app",
    data: {
        pagination: { }
    }
});

Settings

The settings are almost the same as Angular Bootstrap Pagination, there are only 3 differences:

  • v-model is an object and has these keys:
  • page-label does not accept expressions, it works with functions.
  • template-url is not supported.

boundary-links

(Default: false) - Whether to display First / Last buttons.

<div is="uib-pagination" v-model="pagination" :boundary-links="false"></div>

boundary-link-numbers

(Default: false) - Whether to always display the first and last page numbers. If max-size is smaller than the number of pages, then the first and last page numbers are still shown with ellipses in-between as necessary. NOTE: max-size refers to the center of the range. This option may add up to 2 more numbers on each side of the displayed range for the end value and what would be an ellipsis but is replaced by a number because it is sequential.

<div is="uib-pagination" v-model="pagination" :boundary-link-numbers="false"></div>

direction-links

(Default: true) - Whether to display Previous / Next buttons.

<div is="uib-pagination" v-model="pagination" :direction-links="true"></div>

first-text

(Default: First) - Text for First button.

<div is="uib-pagination" v-model="pagination" first-text="First"></div>

force-ellipses

(Default: false) - Also displays ellipses when rotate is true and max-size is smaller than the number of pages.

<div is="uib-pagination" v-model="pagination" :force-ellipses="false"></div>

items-per-page

(Default: 10) - Maximum number of items per page. A value less than one indicates all items on one page.

<div is="uib-pagination" v-model="pagination" :items-per-page="10"></div>

last-text

(Default: Last) - Text for Last button.

<div is="uib-pagination" v-model="pagination" last-text="Last"></div>

max-size

(Default: null) - Limit number for pagination size.

<div is="uib-pagination" v-model="pagination" :max-size="7"></div>

next-text

(Default: Next) - Text for Next button.

<div is="uib-pagination" v-model="pagination" next-text="Next"></div>

change

This can be used to call a function whenever the page changes.

<div is="uib-pagination" v-model="pagination" @change="someFunction"></div>

disabled

(Default: false) - Used to disable the pagination component.

<div is="uib-pagination" v-model="pagination" :disabled="false"></div>

v-model

(Required)

  • pagination (Default: 1) - Current page number. First page is 1.
  • numPages (Readonly) - Total number of pages to display.
<div is="uib-pagination" v-model="pagination"></div>

page-label

(Default: identity) - Override the page label based on passing the current page indexes. Supports page number with a paramenter.

<div is="uib-pagination" v-model="pagination" :page-label="someFunction"></div>

previous-text

(Default: Previous) - Text for Previous button.

<div is="uib-pagination" v-model="pagination" previous-text="Previous"></div>

rotate

(Default: true) - Whether to keep current page in the middle of the visible ones.

<div is="uib-pagination" v-model="pagination" :rotate="true"></div>

total-items

Total number of items in all pages.

<div is="uib-pagination" v-model="pagination" :total-items="72"></div>

Inspiration

Give people comming from Angular.js major facility to use pagination.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].