Download the PHP package pedro-teixeira/grid-bundle without Composer
On this page you can find all versions of the php package pedro-teixeira/grid-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pedro-teixeira/grid-bundle
More information about pedro-teixeira/grid-bundle
Files in pedro-teixeira/grid-bundle
Package grid-bundle
Short Description Ajax grid for Symfony2
License MIT
Homepage http://github.com/pedro-teixeira/grid-bundle
Informations about the package grid-bundle
pedro-teixeira/grid-bundle
Ajax grid for Symfony2
Example
Using Twitter Bootstrap, jQuery Bootstrap Datepicker and fake data with Faker.
Requirements
- Twitter Bootstrap (not mandatory)
- If you choose to don't use Twitter Bootstrap, it'll be necessary to create your own style.
- jQuery Bootstrap Datepicker (not mandatory)
- If you choose to don't use Bootstrap Datepicker, please disable the datepicker as default in the configuration, "use_datepicker".
Installation
-
Add as a dependency in your composer file
-
Add to your Kernel
-
Add to your assetics configuration
-
Add assets to your layout
-
(optional) Adjust configurations
The configuration "use_datepicker" will set the input type as "text" and attach a jQuery plugin "datepicker()" to the filter.
Create your grid
-
Create the grid class
In your bundle, create a folder named "Grid" (or wathever namespace you want) and create your grid definition class.
-
Use the grid factory in your controller
-
Render in your template
`
Or if you want to render the grid's html and the grid's js separately:
`
Understanding
Continuous integration
To execute locally the checks that are executed on Travis: