Пример #1
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->initOptions();
     echo Html::beginTag('div', $this->options) . "\n";
     echo $this->renderBodyBegin() . "\n";
 }
Пример #2
0
 /**
  * Initializes the widget.
  * If you override this method, make sure you call the parent implementation first.
  */
 public function init()
 {
     parent::init();
     if ($this->orientation == self::VERTICLE) {
         Html::addCssClass($this->options, 'btn-group-vertical');
     } else {
         Html::addCssClass($this->options, 'btn-group');
     }
 }
Пример #3
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->initOptions();
     echo Html::beginTag('div', $this->options) . "\n";
     echo Html::beginTag('div', ['class' => 'small-box ' . $this->color]) . "\n";
     echo $this->renderHeader() . "\n";
     echo $this->renderBodyBegin() . "\n";
 }
Пример #4
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->initOptions();
     $this->initDefaultButtons();
     echo Html::beginTag('div', $this->options) . "\n";
     echo Html::beginTag('div', ['class' => 'box ' . $this->type]) . "\n";
     echo $this->renderHeader() . "\n";
     echo $this->renderBodyBegin() . "\n";
 }
Пример #5
0
 /**
  * Initializes the widget.
  * If you override this method, make sure you call the parent implementation first.
  */
 public function init()
 {
     parent::init();
     if ($this->type) {
         $class = $this->type == self::DROPDOWN ? 'dropdown-menu' : 'treeview-menu';
         Html::addCssClass($this->options, $class);
     } else {
         Html::addCssClass($this->options, 'dropdown-menu');
     }
 }
Пример #6
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     $default_url = '/' . Yii::$app->controller->uniqueId . '/index';
     $config = ['form_title' => 'Search', 'action' => $default_url, 'default_open' => false, 'filter_label' => 'Filter By:'];
     $this->config = array_merge($config, $this->config);
     /*
             $this->js = [
                 '../assets/js/cropper.min.js'
             ];
             $this->css = [
                 '../assets/css/cropper.min.css'
             ];*/
     parent::init();
 }
Пример #7
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->clientOptions = false;
     Html::addCssClass($this->options, 'navbar');
     if ($this->options['class'] === 'navbar') {
         Html::addCssClass($this->options, 'navbar-default');
     }
     if (empty($this->options['role'])) {
         $this->options['role'] = 'navigation';
     }
     $options = $this->options;
     $tag = ArrayHelper::remove($options, 'tag', 'nav');
     echo Html::beginTag($tag, $options);
     echo $this->renderToggleButton();
     echo Html::beginTag('div', ['class' => 'navbar-right']);
 }
Пример #8
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     $this->js = ['../assets/js/cropper.min.js'];
     $this->css = ['../assets/css/cropper.min.css'];
     parent::init();
 }
Пример #9
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->clientOptions = false;
     $options = $this->options;
     $tag = ArrayHelper::remove($options, 'tag', 'nav');
     echo Html::beginTag($tag, $options);
     if ($this->brandLabel !== null) {
         Html::addCssClass($this->brandOptions, 'logo');
         echo Html::a($this->brandLabel, $this->brandUrl === null ? Yii::$app->homeUrl : $this->brandUrl, $this->brandOptions);
     }
 }
Пример #10
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->initOptions();
 }
Пример #11
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, 'nav ' . $this->navType);
 }
Пример #12
0
 /**
  * Initializes the widget.
  * If you override this method, make sure you call the parent implementation first.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, 'progress');
     if ($this->orientation == self::VERTICLE) {
         Html::addCssClass($this->options, 'vertical');
     }
 }
Пример #13
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     if ($this->route === null && Yii::$app->controller !== null) {
         $this->route = Yii::$app->controller->getRoute();
     }
     if ($this->params === null) {
         $this->params = Yii::$app->request->getQueryParams();
     }
     Html::addCssClass($this->options, 'nav');
 }
Пример #14
0
 /**
  * Initializes the widget.
  * If you override this method, make sure you call the parent implementation first.
  */
 public function init()
 {
     if (!$this->hasModel() && $this->name === null) {
         throw new InvalidConfigException("Either 'name', or 'model' and 'attribute' properties must be specified.");
     }
     if (!isset($this->options['id'])) {
         $this->options['id'] = $this->hasModel() ? Html::getInputId($this->model, $this->attribute) : $this->getId();
     }
     parent::init();
 }
Пример #15
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->initOptions();
     echo Html::beginTag($this->type, $this->options) . "\n";
 }
Пример #16
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, $this->box ? 'box-group' : 'panel-group');
 }
Пример #17
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, 'carousel');
 }
Пример #18
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->initOptions();
     echo $this->renderToggleButton() . "\n";
     echo Html::beginTag('div', $this->options) . "\n";
     echo Html::beginTag('div', ['class' => 'modal-dialog ' . $this->size]) . "\n";
     echo Html::beginTag('div', ['class' => 'modal-content']) . "\n";
     echo $this->renderHeader() . "\n";
     echo $this->renderBodyBegin() . "\n";
 }
Пример #19
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     $config = ['title' => 'widget'];
     $this->config = array_merge($config, $this->config);
     parent::init();
 }
Пример #20
0
 /**
  * Initializes the widget.
  * If you override this method, make sure you call the parent implementation first.
  */
 public function init()
 {
     parent::init();
     $this->clientOptions = false;
     Html::addCssClass($this->options, 'btn');
 }