定制 cdi/cdidatagrid 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cdi/cdidatagrid

Composer 安装命令:

composer require cdi/cdidatagrid

包简介

Zend Framework 2 Module that provides a datagrid

README 文档

README

Zend Framework 2 module.

It allows you to render a datagrid from an Doctrine2 entity.

Features: Paginate, Filter, Order, Add, edit, view and delete records

Modulo para Zend Framework 2.

Permite renderizar un datagrid a partir de una entidad de Doctrine 2.

Caracteristicas: Paginar,Filtrar, Ordenar, Agregar, editar, visualizar y eliminar registros

##Ejemplo/Example:

alt tag

Simple usage

$grid = $this->getServiceLocator()->get('cdiGrid');
$source = new \CdiDataGrid\DataGrid\Source\Doctrine($this->getEntityManager(), 'CdiCrm\Entity\Ticket');
$grid->setSource($source);
$grid->setRecordsPerPage(5);
$grid->prepare();
$view = new ViewModel(array('grid' => $grid));
return $view;

In View

<?php echo $this->CdiGrid($this->grid); ?>

Obs

-The default template need jQuery and Bootstrap

Functions

After "$grid->prepare();"

Hidden Column

$grid->hiddenColumn('columnName');

Change Column Visual Name

$grid->changeColumnName('columnName','newColumnName');

Set DateTime Column Format

$grid->datetimeColumn('createdAt', 'Y-m-d H:i:s');

Set render a column with a custom view helper

$grid->customHelperColumn('columnname',"ViewHelperName");

Set Template to Render

$grid->setTemplate("ajax");

Set a custom class to table

$grid->setTableClass("customClass table-condensed table-striped");

Set a custom class to Column (td)

$grid->classTdColumn('columnName', "customClass text-center col-md-1");

many more...

统计信息

  • 总下载量: 221
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 4
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-09-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固