eps/

jqgridbundle

Symfony2的JqGrid集成

安装数量: 3,045

依赖者: 0

建议者: 0

安全性: 0

星标: 11

关注者: 2

分支: 17

开放问题: 3

语言:JavaScript

类型:symfony-bundle

dev-master 2013-10-17 12:56 UTC

This package is not auto-updated.

Last update: 2020-01-01 18:01:29 UTC


README

为Symfony2实现的JqGrid。

兼容性: 已测试与Symfony > 2.0.12兼容(未测试> 2.1.x)

完整工作演示

变更日志

2012-06-04: BC break - 更改渲染函数 jqgrid_js 为 jqgrid

安装

  1. 将此包添加到您的 vendor/ 目录中

    在您的deps文件中添加以下行

      [EPSJqGridBundle]
        git=git://github.com/michelpa/JqGridBundle.git
        target=/bundles/EPS/JqGridBundle
    

    运行vendor脚本

      ./bin/vendors install
    
  2. 将"EPS"命名空间添加到您的自动加载器中

       <?php
       // app/autoload.php
       $loader->registerNamespaces(array(
           'EPS' => __DIR__.'/../vendor/bundles',
       // your other namespaces
       ));
  3. 在kernel中启用该包

      <?php
         // app/ApplicationKernel.php
         public function registerBundles()
         {
             return array(
                 // ...
                 new EPS\JqGridBundle\EPSJqGridBundle(),
                 // ...
             );
         }
  4. 将资源添加到您的布局中

    JS

      bundles/epsjqgrid/js/i18n/grid.locale-fr.js
      bundles/epsjqgrid/js/jquery.jqGrid.min.js
    

    CSS

      bundles/epsjqgrid/css/ui.jqgrid.css
    
  5. 配置

在config.yml中

eps_jq_grid: ~

或者如果您想指定日期格式(对于日期选择器),您必须在js和php格式(转换)中设置日期格式

eps_jq_grid: 
    datepicker_format: dd/mm/yy
    datepickerphp_format: d/m/Y

网格示例

完整工作演示