consultnn/yii2-custom-grid
Composer 安装命令:
composer require consultnn/yii2-custom-grid
包简介
Yii2 GridView with plugin support
README 文档
README
Plugin system for Yii2 GridView
Installation
The preferred way to install this extension is through composer.
Add dependence
"consultnn/yii2-custom-grid": "*"
to the require section of your composer.json file.
Existing plug-ins
Configuration
- Add grid view in your view with plugins parameter
echo consultnn\grid\GridView::widget(
[
'dataProvider' => $dataProvider,
'filterModel' => $model,
'plugins' => [
\consultnn\grid\plugins\ResizableColumns::className(),
[
'class' => \consultnn\grid\plugins\Settings::className(),
'url' => \yii\helpers\Url::to('/company/settings'),
'storage' => Yii::$app->user->identity->settings,
'activeColumns' => ['_id', 'name', 'type']
]
]
]
);
- Plugins attribute contains array of enabled component plugins.
About every supported plugin you may read in plugins docs
License
Auth module is released under the MIT License. See the bundled LICENSE.md for details.
统计信息
- 总下载量: 269
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-01-14