Giter Site home page Giter Site logo

hamburgscleanest / data-tables Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 0.0 3.14 MB

Data tables whose behavior and appearance can be extended by components. For example sorting, paginating or filtering the table. No JavaScript is required.

License: MIT License

PHP 99.99% HTML 0.01%
datatables tables tablesorter laravel laravel-5-package laravel-package pagination pagination-components customizable extendable

data-tables's People

Contributors

dependabot-preview[bot] avatar karllson avatar scrutinizer-auto-fixer avatar timopruesse avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

data-tables's Issues

DataComponents need to be able to access the relations

The relations which are specified in the "with" function of the data table have to be accessible to the data components. For example the sorter component must be able to sort by a related column.

   $dataTable = DataTable::model(User::class)
     ->with(['groups'])
     ->columns(['COUNT(groups.id)'])
     ->addComponent(new Sorter(['count_groups_id' => 'desc']));

Paginator links

You need to be able to change the link symbols.
Provide functions for changing the following symbols:

  • first page
  • last page
  • next page
  • previous page

Create manual

Create the first revision of a manual.

  • explain basic usage (similar to README)
  • list all available data components and display their usage
  • list all available column formatters and display their usage
  • list all available header formatters and display their usage
  • example for caching

Implement caching

Give the user an option to cache the data displayed in the table.
It should work with any driver. For example caching the results in Redis.
The user needs to be able to define the timespan the data is cached for (e.g. 60 minutes).

Direct component access

Right now it's only possible to render data components if you pass them into the view manually:

$paginator = new Paginator();
...
view('your.view', compact('paginator');

and then in the view:

$paginator->render()

It would be nice if you could do something like:

$myDatatable->paginator->render()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.