init() публичный Метод

public init ( )
Пример #1
0
 public function init()
 {
     $this->registerTranslations();
     Icon::map($this->grid->getView(), Icon::FA);
     parent::init();
     // TODO: Change the autogenerated stub
 }
Пример #2
0
 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();
 }
Пример #3
0
 public function init()
 {
     parent::init();
     //$this->header = '';
     //$this->contentOptions = ArrayHelper::merge(['class'=>'buttonColumn', ], $this->contentOptions);
 }
Пример #4
0
 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?'));
 }
Пример #5
0
 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();
 }
Пример #6
0
 public function init()
 {
     parent::init();
     $this->template = '<div class="btn-group" role="group" aria-label="...">' . $this->template . '</div>';
 }