renderDataCellContent()
보호된 메소드
$progressBarClass 공개적으로 프로퍼티
the progress bar class
You may set a fixed progress bar class for all rows via string or a dynamic class via callback.
Callback function gets two parameters: ActiveRecord model and GridView column.
Static class example:
'progressBarClass' => \yiister\grid\widgets\ProgressColumn::STYLE_DANGER,
Dynamic class example:
'progressBarClass' => function ($model, $column) {
return $model->{$column->attribute} > 15
? \yiister\grid\widgets\ProgressColumn::STYLE_SUCCESS
: \yiister\grid\widgets\ProgressColumn::STYLE_WARNING;
},