Download the PHP package kilik/table without Composer
On this page you can find all versions of the php package kilik/table. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package table
Short Description Symfony Ajax Datagrid Bundle for doctrine entities
License MIT
Homepage https://github.com/KilikFr/TableBundle
Informations about the package table
README
What's KilikTableBundle ?
KilikTableBundle is a fast, modern, and easy-to-use way to manipulate paginated information, with filtering and ordering features, with ajax queries.
This bundle is a work in progress.
Links:
Working features:
- pagination
- basic filtering (like %...%)
- advanced filtering (<,>,<=,>=,=,!,!=)
- ordering by column (and reverse)
- basic table template extendable
- keep filters and orders in browser local storage (api REST)
- filtering on queries with group by
- show ordered column (normal and reverse)
- max items per page selector (customizable)
- delay on keyup events (to prevent multiple reloads)
- checkbox and select filter
- CSV export of filtered rows
- customization of visible columns (hide/show checkboxes)
- column display colum cells with callback
- custom display colum cells with template
- multiple lists on one page
- pre-load default filters and reset local storage filters
- smart filtering on many words (Filter::TYPE_LIKE_WORDS_AND)
- (beta) support api calls to load resources via web services
Planned features:
- more translations
- add advanced templates
Installation
Patch your AppKernel.php (symfony <4):
Patch your AppKernel.php (symfony >=4):
Install assets
And create your first list:
Feature disabled on 1.0 branch (symfony 4 compatibility WIP)
(With default parameters, your list is available here http://localhost/yourcontroller/list)
Usage
This documentation need to be completed.
Here, some examples to show latest features.
Optimized version to load entities, from Repository Name:
Optimized version to load entities, from Callback method (Eager loading):
Mass actions
Define a mass action for list
If mass action does not have a specified action, a javascript event is fired. You can get all rows checked as following :
Events / Listeners
-
kilik:init:start
jQuery event when table init process starts kilik:init:end
jQuery event when table init process ends
Autoload Kilik Tables
A new twig block provide metadata information about table so you can autoload it if necessary without any javascript in your twig template.
You can access table configurations from HTML attributes with jQuery, see the example :
Bootstrap 4
Note: WIP on Bootstrap 4 (with Font Awesome) integration, use new JS function:
Use other storage for table filters
If you want to use a custom storage for table filters (Eg. Session).
Customize filled filters
When a filter is filled, class table-filter-filled is added on field. By default, no style is applied, but you can override it to fit your needs :
Filter date columns
Users can filter this data using various operators, for example :
26/02/1802
or=26/02/1802
: expects a specific day!=21/11/1694
: expects any day except 21 November 1694>26/02/1802 18:00
: expects specific day after 18:00 and without end limit>=02/1802
: expects in february 1802 and after<2024
: expects in 2023 and before<=26/02/1802 15
: expects 26 February 1802 at 3pm or earlier=
: expects date is NULL!=
: expects date is not NULL
For bundle developpers
All versions of table with dependencies
ext-json Version *
twig/twig Version ^1.0||^2.0||^3.0
doctrine/orm Version ^2.5
doctrine/doctrine-bundle Version ~1.0||~2.0
symfony/form Version ^4.0||^5.0||^6.0||^7.0