2017 © Pedro Peláez
 

yii2-extension yii2-combinedcolumn

Combined Column in grid YII2

image

rikcage/yii2-combinedcolumn

Combined Column in grid YII2

  • Thursday, July 6, 2017
  • by rikcage
  • Repository
  • 0 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 44 % Grown

The README.md

combinedcolumn

Сombined DataColumn, (*1)

Combining several columnы into one with using filters and sorting, (*2)

composer require rikcage/yii2-combinedcolumn "*", (*3)

for use add in GridView columns, (*4)

<?= GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid\SerialColumn'],, (*5)

        item_id,
        item_name,
        [
            'class' => 'rikcage\combinedcolumn\CombinedDataColumn',
            'labelTemplate' => '{1}<br>{0}',
            'valueTemplate' => '{1} {0}',
            'filterTemplate' => '<div class="row"><div class="col-md-5">{1}</div><div class="col-md-6">{0}</div></div>',
            'labels' => [
                'currency',
                'amaunt',
            ],
            'attributes'=>['currency:text','rate:text'],
            'values'=>['currency','rate'],
            'filters'=> [
                array('1' => 'usd', '3' => 'eur'), //select for currency
                null, //input for rate
            ],
        ],
    ],
]); ?>

The Versions

06/07 2017

dev-master

9999999-dev

Combined Column in grid YII2

  Sources   Download

MIT

The Requires

 

yii2 grid column combinedcolumn combined

06/07 2017

1.0.0

1.0.0.0

Combined Column in grid YII2

  Sources   Download

MIT

The Requires

 

yii2 grid column combinedcolumn combined