pkpudev/yii2-tabularform
Composer 安装命令:
composer require pkpudev/yii2-tabularform
包简介
Grid Tabular Form Widget
README 文档
README
Tabular Form Widget
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist pkpudev/yii2-tabularform "*"
or add
"pkpudev/yii2-tabularform": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \pkpudev\widget\grid\TabularInput::widget([ 'title'=>'Title', 'idField'=>'id', 'parentIdField'=>'parent_id', 'controls'=>[ new InputControl(['type'=>'textInput', 'name'=>'field_name1', 'title'=>'Input 1']), new InputControl(['type'=>'dateInput', 'name'=>'field_name2', 'title'=>'Date 1']), new InputControl(['type'=>'dropDownList', 'name'=>'field_name3', 'title'=>'Options 1', 'data'=>[ '', 6=>'Val 1', 12=>'Val 2', ]]), ], 'data'=>[ ['id'=>1, 'parent_id'=>0, 'field_name1'=>null, 'field_name2'=>null, 'field_name3'=>null], ... ] ]); ?>
DatePicker
Get it here
"eternicode/bootstrap-datepicker": ">=v1.7.0"
统计信息
- 总下载量: 495
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-12-14