title = 'params list'; ?>

Parameters

'/list/index', 'method' => 'get', ]); ?> 'btn btn-l btn-success w-100 mb-1' ]) ?> 'btn btn-l btn-success w-100' ]) ?>

Set your search query in the grid view

$provider, 'filterModel' => $searchModel, 'columns' => [ 'id', 'title', 'type', [ 'label' => 'Icon', 'value' => function (Parameter $model) { if ($model->icon) { $url = '/api/image?sha256=' . $model->icon->sha256; return Html::a(Html::img($url, [ 'width' => 150, 'height' => 150 ]), $url, [ 'alt' => 'icon', 'target' => '_blank' ]); } }, 'format' => 'raw', ], [ 'label' => 'Delete icon', 'value' => function (Parameter $model) { if ($model->icon) { return Html::a('Delete icon', '/list/delicon?type=normal&id=' . $model->id, [ 'class' => 'btn btn-sx btn-danger' ]); } }, 'format' => 'raw', ], [ 'label' => 'Gray Icon', 'value' => function (Parameter $model) { if ($model->iconGray) { $url = '/api/image?sha256=' . $model->iconGray->sha256; return Html::a(Html::img($url, [ 'width' => 150, 'height' => 150 ]), $url, [ 'alt' => 'grayscale icon', 'target' => '_blank' ]); } }, 'format' => 'raw', ], [ 'label' => 'Delete gray icon', 'value' => function (Parameter $model) { if ($model->iconGray) { return Html::a('Delete gray icon', '/list/delicon?type=gray&id=' . $model->id, [ 'class' => 'btn btn-sx btn-danger' ]); } }, 'format' => 'raw', ], [ 'label' => 'Edit', 'value' => function (Parameter $model) { return Html::a('Edit', '/list/edit?id=' . $model->id, [ 'class' => 'w-100 btn btn-sx btn-secondary' ]) . Html::a('Delete', '/list/del?id=' . $model->id, [ 'class' => 'w-100 btn btn-sx btn-danger' ]); }, 'format' => 'raw', ], ] ]); ?>