定制 miloslavkostir/datagrid 二次开发

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

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

miloslavkostir/datagrid

最新稳定版本:v2.0.2

Composer 安装命令:

composer require miloslavkostir/datagrid

包简介

DataGrid for Nette Framework based on Niftyx/NiftyGrid.

README 文档

README

DataGrid for Nette Framework based on Niftyx/NiftyGrid (it seems to be no longer supported).

This is extended version of NiftyGrid - a simple and light-weight datagrid for Nette framework. This is optimalized for Nette >= v2.1. Support for Twitter Bootstrap 2 and 3.

Install

	composer require miloslavkostir/datagrid

Copy resources:

  • assets/css/grid.css
  • assets/js/grid.js

to your public www dir and include them in template (usually in @layout.latte). grid.js needs jQuery and jQuery UI - download them from original source or use files from assets/.
For AJAX include assets/js/grid.ajax.js. You can use some third party ajax addon instead, e.g. nette.ajax.js:

// with nette.ajax.js just add selector .grid-ajax
$.nette.init(function (ajaxHandler) {
	$('.grid-ajax').on('click', ajaxHandler);
});

Notice:
There is a problem with JS confirm(), if you discard confirmation dialog AJAX request will be proceed anyway.
This is solved in assets/js/grid.ajax.js file. If you don't use it you will probably have to create own solution.
See manual (section Row actions) for more informations.

Usage

See manual en cz

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-05-20