renderDataCellContent()
protected méthode
$progressBarClass public_oe property
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;
},
$showText public_oe property