2017 © Pedro Peláez
 

library grid

Symfony2 wrapper for jqGrid plugin

image

lamari/grid

Symfony2 wrapper for jqGrid plugin

  • Thursday, August 17, 2017
  • by houcemL
  • Repository
  • 2 Watchers
  • 2 Stars
  • 58 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

gridLBundle

alt tag, (*1)

Installation :
Composer (this is for Symfony > 2.3)

Add the directory to your composer.json as below:, (*2)

"require": {
    ...
    "lamari/grid": "dev-master"
}

Update/install with this command:, (*3)

php composer.phar update lamari/grid
Step 2: Enable the bundle

register the bundle, (*4)

public function registerBundles()
{
    $bundles = array(
        ...
        new Lamari\GridLBundle\GridLBundle(),
);
How to Use
Configuration :

add this under import in config.yml, (*5)

- { resource: "@GridLBundle/Resources/config/services.yml" }

Under routing.yml :, (*6)

gridL_rout:
    resource: "@GridLBundle/Resources/config/routing.yml"
    prefix:   /
Controller :

One action is requiered to have a nice grid ! by default, (*7)

public function yourAction()
{
    return $this->get("grid.entity_wrapper")->defaultGrid("SomeBundle:SomeEntity","SomeBundle:someView:EntityView.html.twig");
);
View :
<link rel="stylesheet" type="text/css" media="screen" href="{{ asset ('bundles/gridl/css/jquery-ui-1.10.4.custom.min.css') }}" />
<link rel="stylesheet" type="text/css" media="screen" href="{{ asset ('bundles/gridl/css/ui.jqgrid.css') }}" />
<script src="{{ asset ('bundles/gridl/js/jquery-1.11.0.min.js') }}" type="text/javascript"></script>
<script src="{{ asset ('bundles/gridl/js/i18n/grid.locale-en.js') }}" type="text/javascript"></script>
<script src="{{ asset ('bundles/gridl/js/jquery.jqGrid.min.js') }}" type="text/javascript"></script>
{{ jqgridL(grid)}}

GridL

The Versions

17/08 2017

dev-master

9999999-dev https://github.com/houcemL/GridLBundle

Symfony2 wrapper for jqGrid plugin

  Sources   Download

MIT

The Requires

 

by Houcem Eddine Ben Hamed

jquery symfony2 jqgrid