/** * Initializes the widget. */ public function init() { parent::init(); $this->initOptions(); echo Html::beginTag('div', $this->options) . "\n"; echo $this->renderBodyBegin() . "\n"; }
/** * 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'); } }
/** * 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"; }
/** * 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"; }
/** * 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'); } }
/** * 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(); }
/** * 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']); }
/** * Initializes the widget. */ public function init() { $this->js = ['../assets/js/cropper.min.js']; $this->css = ['../assets/css/cropper.min.css']; parent::init(); }
/** * 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); } }
/** * Initializes the widget. */ public function init() { parent::init(); $this->initOptions(); }
/** * Initializes the widget. */ public function init() { parent::init(); Html::addCssClass($this->options, 'nav ' . $this->navType); }
/** * 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'); } }
/** * 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'); }
/** * 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(); }
/** * Initializes the widget. */ public function init() { parent::init(); $this->initOptions(); echo Html::beginTag($this->type, $this->options) . "\n"; }
/** * Initializes the widget. */ public function init() { parent::init(); Html::addCssClass($this->options, $this->box ? 'box-group' : 'panel-group'); }
/** * Initializes the widget. */ public function init() { parent::init(); Html::addCssClass($this->options, 'carousel'); }
/** * 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"; }
/** * Initializes the widget. */ public function init() { $config = ['title' => 'widget']; $this->config = array_merge($config, $this->config); parent::init(); }
/** * 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'); }