public function init() { $this->registerTranslations(); Icon::map($this->grid->getView(), Icon::FA); parent::init(); // TODO: Change the autogenerated stub }
function init() { parent::init(); if (!$this->template) { $this->template = "<span class='btn btn-group btn-group-sm'>{view} {update} {delete}</span>"; } else { $this->template = "<span class='btn btn-group btn-group-sm'>" . $this->template . "</span>"; } //Html::addCssStyle($this->headerOptions, "min-width:160px;"); TODO: Impedir que a ActionColumn quebre. $this->initDefaultButtons(); }
public function init() { parent::init(); //$this->header = ''; //$this->contentOptions = ArrayHelper::merge(['class'=>'buttonColumn', ], $this->contentOptions); }
public function init() { parent::init(); //Стандартное сообщение при удалении элемента $this->deleteOptions['data-message'] = ArrayHelper::getValue($this->deleteOptions, 'data-message', Yii::t('yii', 'Are you sure you want to delete this item?')); }
public function init() { $this->_isDropdown = $this->grid->bootstrap && $this->dropdown; $this->grid->formatColumn($this->hAlign, $this->vAlign, $this->noWrap, $this->width, $this->headerOptions, $this->contentOptions, $this->pageSummaryOptions, $this->footerOptions); if (!isset($this->header)) { $this->header = Yii::t('kvgrid', 'Actions'); } parent::init(); $this->initDefaultButtons(); }
public function init() { parent::init(); $this->template = '<div class="btn-group" role="group" aria-label="...">' . $this->template . '</div>'; }