2017 © Pedro Peláez
 

symfony-bundle data-grid-bundle

AngularJS based datagrid bundle for Symfony2

image

samson/data-grid-bundle

AngularJS based datagrid bundle for Symfony2

  • Tuesday, September 19, 2017
  • by SamsonIT
  • Repository
  • 13 Watchers
  • 5 Stars
  • 1,320 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 32 Versions
  • 0 % Grown

The README.md

SamsonDataGridBundle

The SamsonDataGridBundle provides an AngularJS based table renderer. Using a simple html tag you can easily implement a fully interactive client side data table even supporting inline editing., (*1)

How does this work?

You can find the documentation for this bundle in the Resources/doc directory of the bundle:, (*2)

Basic example usage:

Normal:, (*3)

    <script type='text/ng-template' id="header-template.html">
        <tr>
            <th sortable="id">Id</th>
            <th sortable="name">Name</th>
            <th sortable="port">Port</th>
            <th sortable="ip">Ip</th>
            <th colspan="2"><a ng-click="create()"">{{ icon('create') }}</a></th>
        </tr>
    </script>
    <script type='text/ng-template' id="body-template.html">
        <tr>
            {% verbatim %}
            <td>{{ row.id }}</td>
            <td>{{ row.name}}</td>
            <td>{{ row.port}}</td>
            <td>{{ row.ip }}</td>
            {% endverbatim %}
            <td><inline ng-show="isEditable(row)" href="{{ '{{ editPath(row) }}' }}" action='edit'>{{ icon('edit') }}</inline></td>
            <td><a ng-href="{{ '{{ deletePath(row) }}' }}">{{ icon('delete') }}</a></td>
        </tr>
    </script>
    <script type='text/ng-template' id="form-template.html">
        {% verbatim %}
        <tr ng-show="hasErrors"><td colspan="{{ columnCount }}"><div datagrid-errors></div></td></tr>
        <tr>
            <td>{{ row.id }}</td>
            <td><div datagrid-errors="name"></div><input type="text" name="name" ng-model="row.name"></td>
            <td><div datagrid-errors="port"></div><input type="number" ng-model="row.port"></td>
            <td><div datagrid-errors="ip"></div><input type="ip" ng-model="row.ip"></td>
            {% endverbatim %}
            <td><button ng-click="save(row)">Save</button></td>
            <td><button ng-click="cancel(row)">Cancel</button></td>
        </tr>
    </script>

    <datagrid
        header-template="header-template.html"
        body-template="body-template.html"
        form-template="form-template.html"
        data="{{ printers|serialize }}"
        filter-columns="name,ip"
        routes="create: 'printer_zebra_create', edit: 'printer_zebra_edit', delete: 'printer_zebra_delete'"
    ></datagrid>

Server side, powered by KnpPaginator:, (*4)

    <script type='text/ng-template' id="header-template.html">
        <tr>
            <th>id</th>
            <th sortable="e.firstName">First name</th>
            <th>preposition</th>
            <th sortable="e.lastName">last_name</th>
            <th colspan="2"><a ng-href="{{ '{{ createPath() }}' }}">{{ icon('create') }}</a></th>
        </tr>
    </script>
    <script type='text/ng-template' id="body-template.html">
        <tr>
            {% verbatim %}
            <td>{{ row.id }}</td>
            <td>{{ row.first_name }}</td>
            <td>{{ row.preposition }}</td>
            <td>{{ row.last_name }}</td>
            {% endverbatim %}
            <td><a ng-show="isEditable(row)" ng-href="{{ '{{ editPath(row) }}' }}">{{ icon('edit') }}</a></td>
            <td><a ng-href="{{ '{{ deletePath(row) }}' }}">{{ icon('delete') }}</a></td>
        </tr>
    </script>

    <datagrid
        header-template="header-template.html"
        body-template="body-template.html"
        data="{{ entities|serialize }}"
        driver="knp-paginator"
        routes="create: 'person_new', edit: 'person_edit', delete: 'person_delete'"
        filter-columns="e.firstName,e.lastName"
    ></datagrid>

The Versions

19/09 2017

dev-master

9999999-dev

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

19/09 2017

2.3.12

2.3.12.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

19/09 2017

2.3.11

2.3.11.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

19/09 2017

2.3.10

2.3.10.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

06/06 2017

2.3.9

2.3.9.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

29/05 2017

2.3.8

2.3.8.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

09/05 2017

2.3.7

2.3.7.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

16/02 2017

2.3.6

2.3.6.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

17/07 2015

2.3.5

2.3.5.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

17/04 2015

2.3.4

2.3.4.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

08/04 2015

2.3.3

2.3.3.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

05/03 2015

2.3.2

2.3.2.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

03/03 2015

2.3.1

2.3.1.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

03/03 2015

2.3.0

2.3.0.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

20/02 2015

dev-rollback-branch

dev-rollback-branch

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

20/02 2015

2.2.1

2.2.1.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

20/02 2015

2.2.0

2.2.0.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

18/02 2015

2.1.7

2.1.7.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

18/02 2015

2.1.8

2.1.8.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

18/02 2015

dev-fix-null-dereference

dev-fix-null-dereference

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

18/02 2015

2.1.6

2.1.6.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

17/02 2015

2.1.5

2.1.5.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

17/02 2015

2.1.4

2.1.4.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

17/02 2015

2.1.3

2.1.3.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

12/02 2015

2.1.2

2.1.2.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

06/02 2015

2.1.1

2.1.1.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

13/06 2014

2.1.0

2.1.0.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

30/05 2014

1.0.x-dev

1.0.9999999.9999999-dev

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

datatables angularjs datagrid angular

30/05 2014

1.0.1

1.0.1.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

datatables angularjs datagrid angular

28/05 2014

2.0.1

2.0.1.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

 

datatables angularjs datagrid angular

21/03 2014

2.0.0

2.0.0.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

datatables angularjs datagrid angular

14/01 2014

1.0.0

1.0.0.0

AngularJS based datagrid bundle for Symfony2

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

datatables angularjs datagrid angular