Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

laravel-vue-tailwind-pagination

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravel-vue-tailwind-pagination

![Vue Test Utils - Jest](https://github.com/laravel-vue-tailwind/pagination/workflows/Vue%20Test%20Utils%20-%20Jest/badge.svg)

  • 0.1.8
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Vue Test Utils - Jest

Laravel Vue Pagination

A Vue.js pagination component for Laravel thats built for Tailwind.

Requirements

  • Vue.js 2.x
  • Laravel 5.x +
  • Tailwindcss 1.x +

Demo & Docs

See https://laravel-vue-tailwind.github.io/pagination/

Component Installation

npm install laravel-vue-tailwind-pagination

or

yarn add laravel-vue-tailwind-pagination

Register the Plugin

import LaravelVuePagination from 'laravel-vue-tailwind-pagination';

Vue.use(LaravelVuePagination);

Add the following variants to your tailwind.config.js

variants: {
    opacity: ['disabled'],
    cursor: ['disabled'],
},

Basic Example

Pagination.vue

<laravel-vue-tailwind-pagination
    :data="users"
    :showNumbers="true">
</laravel-vue-tailwind-pagination>
export default {
    data() {
        return {
            users: {},
        }
    },
    created() {
        axios.get("http://laravel.test/api/users")
        .then(response => {
            this.users = response.data;
        })
    }
}

API

Pagination Props
NameTypeDefaultDescription
data Object{}The data from paginated AJAX request
limitNumber1The pagination limit each side of the middle button.
sizeString"default"(optional) Must be default or small or large
showDisabledBooleantrue(optional) Pagination buttons next and previous, do you want them displayed if there is nothing to click?
showNumbers Booleanfalse(optional) Pagination show numbered buttons?

Development

To work on the package locally or to add to the documentation, run the following command:

npm run serve

To run the tests:

npm run test:unit

Keywords

FAQs

Package last updated on 02 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc