init() public method

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