priority = (int)$model['priority']['value']; return Html::tag( 'div', $form->field($egeResult, $index) ->hiddenInput() ->label($model['priority']['value']), ['class' => 'priority-for-ege-result'] ); } private static function preprocessDataValue(array $model) { if (empty($model['priority']) || ($model['priority']['rowspan'] == 0 && !isset($model['priority']['colspan']))) { return ''; } if (isset($model['priority']['colspan']) && !empty($model['priority']['value'])) { return Alert::widget([ 'options' => ['class' => 'alert-info'], 'body' => $model['priority']['value'], ]); } return null; } public static function renderOptions(array $model): array { if (empty($model['priority']) || ($model['priority']['rowspan'] == 0 && !isset($model['priority']['colspan']))) { return ['style' => 'display: none;']; } if (isset($model['priority']['colspan'])) { return [ 'class' => 'super_centric', 'colspan' => $model['priority']['colspan'], ]; } return [ 'class' => 'super_centric', 'rowspan' => $model['priority']['rowspan'], ]; } }