guopee / yii2-appendgrid
yii2 extension based on jquery.appendgrid-1.7.1
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:HTML
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2024-04-23 01:45:29 UTC
README
yii2 extension based on jquery.appendGrid-1.7.1
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist guopee/yii2-appendgrid "*"
or add
"guopee/yii2-appendgrid": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?php $form->field($this, $key)->widget( 'guopee\appendGrid', [ 'configs' => [ 'initRows' => 1, 'columns' => [ ['name' => 'target', 'display' => '目标数量', 'type' => 'number'], ['name' => 'money', 'display' => '优惠金额', 'type' => 'number'], ['name' => 'discount', 'display' => '优惠折扣', 'type' => 'number'], ], 'initData'=>json_decode($this->$key) ] ]) ?>