init() public method

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
ファイル: ActionColumn.php プロジェクト: EuresTools/eVote-web
 public function init()
 {
     parent::init();
     //$this->header = '';
     //$this->contentOptions = ArrayHelper::merge(['class'=>'buttonColumn', ], $this->contentOptions);
 }
コード例 #4
0
ファイル: ActionColumn.php プロジェクト: nagser/base
 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
ファイル: ActionColumn.php プロジェクト: pipekung/yii2-grid
 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
ファイル: ActionColumn.php プロジェクト: ailingsen/betterdebt
 public function init()
 {
     parent::init();
     $this->template = '<div class="btn-group" role="group" aria-label="...">' . $this->template . '</div>';
 }