perry-rylance/datatable

This library handles client and server side record fetching, including search, sort and pagination. Please note that this package is still under development and is not usable presently. I expect this to be ready within the week.

dev-master 2020-09-05 09:00 UTC

This package is auto-updated.

Last update: 2023-09-05 15:48:26 UTC


README

This library handles server side record fetching, including search, sort and pagination.

If you're looking for the client side module to go with this, please see https://github.com/PerryRylance/DataTable.js

A script file is provided for convenience which will automatically set up the tables client side also. Feel free to write your own, or extend PerryRylance.DataTable by overriding createInstance.

Requirements

  • This library is designed to be used in an environment with Illuminates DB interface
  • If you would like to use the JavaScript module provided, jQuery must be loaded before the script file

Installation

I recommend installing this via Composer:

composer require perry-rylance/datatable

Usage

  • Make a subclass of PerryRylance\DataTable.
  • You must implement the abstract method getTableName.
  • You must also implement the abstract method getRoute.