2017 © Pedro Peláez
 

symfony-bundle datatablesbundle

Symfony Datatable Bundle For Doctrine2 Entities

image

edweld/datatablesbundle

Symfony Datatable Bundle For Doctrine2 Entities

  • Thursday, July 14, 2016
  • by edweld
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 213 Forks
  • 0 Open issues
  • 19 Versions
  • 0 % Grown

The README.md

SgDatatablesBundle

SensioLabsInsight, (*1)

knpbundles.com, (*2)

Build Status, (*3)

Latest Stable Version Total Downloads Latest Unstable Version License, (*4)

Recent Changes

In-place editing callback (#372)

$this->columnBuilder
    ->add('name', 'column', array(
        'title' => 'Name',
        'editable' => true,
        'editable_if' => function($row) {
            return (
                $this->authorizationChecker->isGranted('ROLE_USER') &&
                $row['public'] == true
            );
        }
    ))

Pipelining to reduce Ajax calls

$this->ajax->set(array(
    'url' => $this->router->generate('chili_private_results'),
    'pipeline' => 6
));

Search result highlighting.

  1. Include the jQuery Highlight Plugin
  2. Configure your Datatables-Class features
$this->features->set(array(
    // ...
    'highlight' => true,
    'highlight_color' => 'red' // 'red' is the default value
));

Enlargement of thumbnails with Featherlight

see #401, (*5)

The Bootstrap modal window does not work properly in responsive mode., (*6)

Load Featherlight with your base layout., (*7)

add_if Closure for all Columns and TopActions

$this->columnBuilder
    ->add('title', 'column', array(
        // ...
        'add_if' => function() {
            return ($this->authorizationChecker->isGranted('ROLE_ADMIN'));
        },
    ))
;
$this->topActions->set(array(
    // ...
    'add_if' => function() {
        return ($this->authorizationChecker->isGranted('ROLE_ADMIN'));
    },
    'actions' => array(
        // ...
    )
));

Render Actions

before, (*8)

'actions' => array(
    array(
        'route' => 'post_edit',
        'route_parameters' => array(
            'id' => 'id'
        ),
        'role' => 'ROLE_ADMIN',
        'render_if' => function($row) {
            return ($row['title'] === 'Title 1');
        },
    ),
    // ...

after, (*9)

'actions' => array(
    array(
        'route' => 'post_edit',
        'route_parameters' => array(
            'id' => 'id'
        ),
        'render_if' => function($row) {
            return (
                $this->authorizationChecker->isGranted('ROLE_USER') &&
                $row['user']['username'] == $this->getUser()->getUsername()
            );
        },
    ),
    // ...

Multiselect: render checkboxes only if conditions are True

$this->columnBuilder
    ->add('title', 'multiselect', array(
        // ...
        'render_checkbox_if' => function($row) {
            return ($row['public'] == true);
        },
    ))
;

Screenshots

Table with Bootstrap3 integration:

Screenshot

Documentation

Installation, (*10)

Column types, (*11)

In-place editing, (*12)

How to use the ColumnBuilder, (*13)

Setup Datatable Class, (*14)

Filtering, (*15)

To use a line formatter, (*16)

Query callbacks, (*17)

Extensions like Buttons or Responsive, (*18)

Options of the generator, (*19)

Reference configuration, (*20)

Example

Demo Application, (*21)

Integrating 3rd party stuff

Integrate Bootstrap3, (*22)

Integrate the Translatable behavior extension for Doctrine 2, (*23)

Integrate the LiipImagineBundle / ImageColumn, GalleryColumn and thumbnails, (*24)

Limitations and Known Issues

Much like every other piece of software SgDatatablesBundle is not perfect and far from feature complete., (*25)

  • This bundle does not support multiple Ids.
  • Searching and filtering on a virtual column not yet implemented and disabled by default.
  • PostgreSql is currently not fully supported.

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker., (*26)

You must know that all the pull requests you are going to submit must be released under the MIT license., (*27)

Friendly License

This bundle is under the MIT license. See the complete license in the bundle:, (*28)

Resources/meta/LICENSE

You are free to use, modify and distribute this software, as long as the copyright header is left intact (specifically the comment block which starts with /*)!, (*29)

The Versions

14/07 2016

dev-master

9999999-dev https://github.com/edweld/DatatablesBundle

Symfony Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar edweld

symfony2 table datatables symfony3 grid pagination datagrid datatable

28/05 2016

v0.11

0.11.0.0 https://github.com/stwe/DatatablesBundle

Symfony Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar stwe

symfony2 table datatables symfony3 grid pagination datagrid datatable

25/02 2016

v0.10

0.10.0.0 https://github.com/stwe/DatatablesBundle

Symfony Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar stwe

symfony2 table datatables symfony3 grid pagination admin datagrid datatable

09/01 2016

v0.9

0.9.0.0 https://github.com/stwe/DatatablesBundle

Symfony Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar stwe

symfony2 table symfony3 grid pagination admin datagrid datatable

29/11 2015

v0.8

0.8.0.0 https://github.com/stwe/DatatablesBundle

Symfony2 Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar stwe

symfony2 table grid pagination datagrid datatable

05/07 2015

v0.7.1

0.7.1.0 https://github.com/stwe/DatatablesBundle

Symfony2 Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar stwe

symfony2 table grid pagination datagrid datatable

20/06 2015

v0.7

0.7.0.0 https://github.com/stwe/DatatablesBundle

Symfony2 Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar stwe

symfony2 table grid pagination datagrid datatable

14/01 2015

v0.6.1

0.6.1.0 https://github.com/stwe/DatatablesBundle

Symfony2 Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar stwe

symfony2 table grid pagination datagrid datatable

28/12 2014

v0.6

0.6.0.0 https://github.com/stwe/DatatablesBundle

Symfony2 Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar stwe

symfony2 table grid pagination datagrid datatable

09/11 2014

v0.5.3

0.5.3.0 https://github.com/stwe/DatatablesBundle

Symfony2 Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

by Avatar stwe

symfony2 table grid pagination datagrid datatable

09/10 2014

v0.5.2

0.5.2.0 https://github.com/stwe/DatatablesBundle

Symfony2 Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

by Avatar stwe

symfony2 table grid pagination datagrid datatable

02/08 2014

v0.5.1

0.5.1.0 https://github.com/stwe/DatatablesBundle

Symfony2 Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

by Avatar stwe

symfony2 table grid pagination datagrid datatable

20/07 2014

v0.5

0.5.0.0 https://github.com/stwe/DatatablesBundle

Symfony2 Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

by Avatar stwe

symfony2 table grid pagination datagrid datatable

11/05 2014

v0.4.2

0.4.2.0 https://github.com/stwe/DatatablesBundle

Symfony2 Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

by Avatar stwe

symfony2 table grid pagination datagrid datatable

13/02 2014

v0.4.1

0.4.1.0 https://github.com/stwe/DatatablesBundle

Symfony2 Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

by Avatar stwe

symfony2 table grid pagination datagrid datatable

02/02 2014

v0.4

0.4.0.0 https://github.com/stwe/DatatablesBundle

Symfony2 Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

by Avatar stwe

symfony2 table grid pagination datagrid datatable

22/01 2014

v0.3

0.3.0.0 https://github.com/stwe/DatatablesBundle

Symfony2 Datatable Bundle For Doctrine2 Entities

  Sources   Download

MIT

The Requires

 

by Avatar stwe

symfony2 table grid pagination datagrid datatable

13/10 2013

v0.2

0.2.0.0 https://github.com/stwe/DatatablesBundle

This Bundle integrates the jQuery DataTables plugin into your Symfony2 application. Compatible with Doctrine ORM.

  Sources   Download

MIT

The Requires

 

by Avatar stwe

symfony2 table grid pagination datagrid datatable

06/10 2013

v0.1

0.1.0.0 https://github.com/stwe/DatatablesBundle

This Bundle integrates the jQuery DataTables plugin into your Symfony2 application. Compatible with Doctrine ORM.

  Sources   Download

MIT

The Requires

 

by Avatar stwe

symfony2 table grid pagination datagrid datatable