All Projects → coderdiaz → vue-tiny-pagination

coderdiaz / vue-tiny-pagination

Licence: MIT license
A Vue component for create a tiny pagination with Flexbox

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects

Projects that are alternatives of or similar to vue-tiny-pagination

pagination
No description or website provided.
Stars: ✭ 14 (-30%)
Mutual labels:  pagination, vue-component
PagedLists
Paginated UITableView and UICollectionViews for iOS.
Stars: ✭ 69 (+245%)
Mutual labels:  pagination, paginate
scrivener list
A Scrivener compatible extension that allows pagination of a list of elements.
Stars: ✭ 23 (+15%)
Mutual labels:  pagination, paginate
mongoose-aggregate-paginate-v2
A cursor based custom aggregate pagination library for Mongoose with customizable labels.
Stars: ✭ 103 (+415%)
Mutual labels:  pagination, paginate
React Paginate
A ReactJS component that creates a pagination
Stars: ✭ 2,169 (+10745%)
Mutual labels:  pagination, paginate
paginathing
a jQuery plugin to paginate your DOM easily.
Stars: ✭ 23 (+15%)
Mutual labels:  pagination, paginate
vue-loading
Loading bar for Vue.js apps using axios
Stars: ✭ 19 (-5%)
Mutual labels:  vue-component
Pagination
a paging widget based on Qt
Stars: ✭ 22 (+10%)
Mutual labels:  pagination
QueryMovies
This repository shows a Android project with Clean Architecture, Functional Reactive Programming and MVP+Dagger
Stars: ✭ 16 (-20%)
Mutual labels:  pagination
graphql-compose-pagination
Plugin for TypeComposer (graphql-compose), that adds `pagination` resolver.
Stars: ✭ 29 (+45%)
Mutual labels:  pagination
reactionmenu
A library to create a discord paginator. Supports pagination with Discords Buttons feature and reactions.
Stars: ✭ 68 (+240%)
Mutual labels:  pagination
InfiniteScroll
You can do a Endless scroll in ListView or RecyclerView with simple steps, with a listener for do request to your web service.
Stars: ✭ 28 (+40%)
Mutual labels:  pagination
AdvancedList-SwiftUI
MOVED to https://github.com/crelies/AdvancedList | Advanced list with empty, error and loading state implemented with SwiftUI
Stars: ✭ 41 (+105%)
Mutual labels:  pagination
vue-circle-choice
A circle color choice and navigation with Vue.js
Stars: ✭ 20 (+0%)
Mutual labels:  vue-component
simple-datagridview-paging
A simple UserControl that shows the data-table and paging automatically with .Net Framework
Stars: ✭ 23 (+15%)
Mutual labels:  pagination
jekyll-pagination
Better pagination for Jekyll.
Stars: ✭ 19 (-5%)
Mutual labels:  pagination
layui-vue
layui - vue(谐音:类 UI) 是 一 套 Vue 3.0 的 桌 面 端 组 件 库
Stars: ✭ 112 (+460%)
Mutual labels:  vue-component
discord-paginationembed
A pagination utility for MessageEmbed in Discord.JS
Stars: ✭ 93 (+365%)
Mutual labels:  pagination
paginater
Package paginater is a helper module for custom pagination calculation.
Stars: ✭ 45 (+125%)
Mutual labels:  pagination
express-mquery
Expose mongoose query API through HTTP request.
Stars: ✭ 37 (+85%)
Mutual labels:  pagination

Tiny Pagination · NPMVERSION GITHUBSTARS BUILD DOWNLOADS

A Vue component for create a tiny paginate with Flexbox

Install/Usage

# Install with npm
$ npm i -S vue-tiny-pagination

# or yarn
$ yarn add vue-tiny-pagination
<div id="app">
  <tiny-pagination
    :total="currentTotal"
    @tiny:change-page="changePage" />
</div>

You can use Local Registration:

import { TinyPagination } from 'vue-tiny-pagination';
new Vue({
  el: '#app',
  data() {
    return {
      currentTotal: 100,
      currentPage: 1,
    };
  },
  methods: {
    changePage (pagination) {
      this.currentPage = pagination.page;
    },
  },
  components: {
    TinyPagination,
  },
});

or Global Registration:

import TinyPagination from 'vue-tiny-pagination';
Vue.use(TinyPagination);

// or with a custom component name
import { TinyPagination } from 'vue-tiny-pagination';
Vue.component('custom-name', TinyPagination);

Usage in browser

In browser you can use Unpkg, Jsdelivr, CDN.js, etc.

# Unpkg
https://unpkg.com/vue-tiny-pagination@latest/dist/vue-tiny-pagination.js

# JSDelivr
https://cdn.jsdelivr.net/npm/vue-tiny-pagination@latest/dist/vue-tiny-pagination.min.js

Documentation

Props

Name Description Type Default Required
total A number of total items Number - true
page Prop to set a default page Number 1 false
lang Default language to show (Available: en, es) String en false
customClass Prop to set a custom class. String "" false
limits Prop to set a default limits to page sizes. Array [10, 15, 20,50,100] false
showLimit Prop to disable the limit selector Boolean true false

Events

Event Description
tiny:change-page Get the current page from pagination payload: { page: 1 }
tiny:change-limit Get the current limit from pagination payload: { limit: 1 }

Community

All feedback and suggestions are welcome!

License

This is a open-source software licensed under the MIT license

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].