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.cssassets/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 inassets/js/grid.ajax.jsfile. If you don't use it you will probably have to create own solution.
See manual (section Row actions) for more informations.
Usage
统计信息
- 总下载量: 482
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-05-20