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