src/widgets/HiBox.php
protected function initBoxTools()
    {
        parent::initBoxTools();
        if (!isset($this->boxTools['collapse'])) {
            $this->boxTools['collapse'] = [
                'icon' => 'fa-minus',
                'options' => [
                    'class' => 'btn-default',
                    'title' => Yii::t('hipanel', 'collapse'),
                    'data-widget' => 'collapse',
                ],
            ];
        }
        if (!isset($this->boxTools['remove'])) {
            $this->boxTools['remove'] = [
                'icon' => 'fa-times',
                'options' => [
                    'class' => 'btn-default',
                    'title' => Yii::t('hipanel', 'remove'),
                    'data-widget' => 'remove',
                ],
            ];
        }
    }
protected function initBoxTools()
    {
        parent::initBoxTools();
        if (!isset($this->boxTools['collapse'])) {
            $this->boxTools['collapse'] = [
                'icon' => 'fa-minus',
                'options' => [
                    'class' => 'btn-default',
                    'title' => Yii::t('hipanel', 'collapse'),
                    'data-widget' => 'collapse',
                ],
            ];
        }
        if (!isset($this->boxTools['remove'])) {
            $this->boxTools['remove'] = [
                'icon' => 'fa-times',
                'options' => [
                    'class' => 'btn-default',
                    'title' => Yii::t('hipanel', 'remove'),
                    'data-widget' => 'remove',
                ],
            ];
        }
    }
protected function initBoxTools ( ) { parent :: initBoxTools ( ) ; if ( ! isset ( $ this -> boxTools [ 'collapse' ] ) ) { $ this -> boxTools [ 'collapse' ] = [ 'icon' => 'fa-minus' , 'options' => [ 'class' => 'btn-default' , 'title' => Yii :: t ( 'hipanel' , 'collapse' ) , 'data-widget' => 'collapse' , ] , ] ; } if ( ! isset ( $ this -> boxTools [ 'remove' ] ) ) { $ this -> boxTools [ 'remove' ] = [ 'icon' => 'fa-times' , 'options' => [ 'class' => 'btn-default' , 'title' => Yii :: t ( 'hipanel' , 'remove' ) , 'data-widget' => 'remove' , ] , ] ; } }
Buttons render.
Buttons render .