Skip to content

Instantly share code, notes, and snippets.

@mdmunir
Created April 16, 2017 01:31
Show Gist options
  • Save mdmunir/6db95000c681be05877f72cdedd8c1a8 to your computer and use it in GitHub Desktop.
Save mdmunir/6db95000c681be05877f72cdedd8c1a8 to your computer and use it in GitHub Desktop.
<?=
GridInput::widget([
'id' => 'detail-grid',
'allModels' => $model->items,
'model' => OrderItem::className(),
'columns' => [
['class' => 'mdm\widgets\SerialColumn'],
'product_id',
'qty',
[
'attribute' => 'uom_id',
'widget' => ['kartik\widgets\Select2', [
// option of select2
]]
],
['class' => 'mdm\widgets\ButtonColumn']
],
]);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment