schmasterz/yii2-widget-ag-grid
Composer 安装命令:
composer require schmasterz/yii2-widget-ag-grid
包简介
Yii2 wrapper for ag-grid.
关键字:
README 文档
README
This extension provides the agGrid integration for the Yii2 framework.
Requirements
The minimum requirement by yii2-widget-ag-grid that your Web server supports PHP 7.1.
Install via Composer
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
Run
$ php composer.phar require schmasterz/yii2-widget-ag-grid "master@dev"
Usage
<?= \schmasterz\agGrid\AgGridWidget::widget([ 'id' => 'ag-grid', 'options' => [ 'style' => 'height: 600px;width:500px;' ], 'gridOptions' => [ 'columnDefs' => [ ['headerName' => 'Make', 'field' => 'make', 'sortable' => true], ['headerName' => 'Model', 'field' => 'model', 'sortable' => true], ['headerName' => 'Price', 'field' => 'price', 'sortable' => true], ], ] ]); ?>
You can also use agGrid in the JavaScript layer of your application. To achieve this, you need to include agGrid as a dependency of your Asset file
public $depends = [ 'schmasterz\agGrid\AgGridAsset', ];
or add it to your view file
schmasterz\agGrid\AgGridAsset::register($this);
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-11