Created
March 15, 2017 03:50
-
-
Save mdmunir/f8e79f81909a8eba2ead96ca9b12c54c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?= | |
| GridInput::widget([ | |
| 'allModels' => $model->orderItems, | |
| 'model' => \app\models\OrderItem::className(), | |
| 'form' => $form, | |
| 'columns' => [ | |
| ['class' => 'mdm\widgets\SerialColumn'], | |
| [ | |
| 'attribute' => 'name', | |
| 'widget' => ['kartik\select2\Select2', [ | |
| // option widget here | |
| ]] | |
| ], | |
| ['class' => 'mdm\widgets\ButtonColumn'] | |
| ], | |
| 'hiddens'=>[ | |
| 'id' | |
| ] | |
| ]) | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment