Download the PHP package iyogesharma/vue-datatable without Composer
On this page you can find all versions of the php package iyogesharma/vue-datatable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iyogesharma/vue-datatable
More information about iyogesharma/vue-datatable
Files in iyogesharma/vue-datatable
Package vue-datatable
Short Description package to help in handling server side
License MIT
Informations about the package vue-datatable
Vue DataTable For Laravel
A simple package to ease DataTable server side handling
This package is created to handle server-side rendring of DataTables by using Eloquent ORM, Query Builder or Collection.This package helps you to easily manage server side rendring of datatables if you are dealing with js libraries like Vue or React. Currently Element-UI is completely supported by this package. Soon some other populer libraries will also get supported.
Using Helper Function
function datatable also contain optional parameter $json with default value to true, set this param to false if you want to use instance of DataTable particular database driver class. eg, below code return instance of YS\vueDataTable\Eloquent class
vue-datatables also includes some other helper funcions that you can use if you want to use a particular database driver
Input Format
You must send query object given above in the query parameter in order to use this package.
- page represent page number in pagination
- limt number of records be displayed on a single page
- keyword key you want to search in table
- keyword string you want to search in table
- order handle ordering of columns in table. here key column represents name of ordering column and key direction represents direction. key direction can only have values ascending or descending.
- filters filters table data eg, role_id if you want to see users of a particular role only.
Requirements
Quick Installation
Service Provider & Facade (Optional on Laravel 5.5)
Register provider and facade on your config/app.php
file.
Example(Element-UI)
In the example given above you can also use component "el-pagination". keys total, query.limit and query.page can be used to create dynamic pagination.
License
The MIT License (MIT). Please see License File for more information.