public function init()
{
if (empty($this->trueLabel)) {
$this->trueLabel = Yii::t('kvgrid', 'Active');
}
if (empty($this->falseLabel)) {
$this->falseLabel = Yii::t('kvgrid', 'Inactive');
}
$this->filter = [true => $this->trueLabel, false => $this->falseLabel];
if (empty($this->trueIcon)) {
/** @noinspection PhpUndefinedFieldInspection */
$this->trueIcon = $this->grid->bootstrap ? GridView::ICON_ACTIVE : $this->trueLabel;
}
if (empty($this->falseIcon)) {
/** @noinspection PhpUndefinedFieldInspection */
$this->falseIcon = $this->grid->bootstrap ? GridView::ICON_INACTIVE : $this->falseLabel;
}
parent::init();
}