/** * Initializes the widget. */ public function init() { parent::init(); Html::addCssClass($this->options, ['widget' => 'progress']); Html::addCssClass($this->progressOptions, ['type' => $this->type]); if ($this->type === 'determinate') { Html::addCssStyle($this->progressOptions, ['width' => $this->value . '%']); } }