Esempio n. 1
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', $this->dialogOptions) . "\n";
     echo $this->renderCloseButton();
 }
Esempio n. 2
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->clientOptions = false;
     Html::addCssClass($this->options, 'uk-navbar');
     if (empty($this->options['role'])) {
         $this->options['role'] = 'navigation';
     }
     echo Html::beginTag('nav', $this->options);
 }
Esempio n. 3
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, 'uk-dropdown');
     $this->tagOptions['data-uk-dropdown'] = $this->jsonClientOptions();
     if ($this->toggleButton !== null) {
         Html::addCssClass($this->tagOptions, 'uk-button-dropdown');
     }
     if ($this->tag) {
         echo Html::beginTag($this->tag, $this->tagOptions) . "\n";
     }
     echo $this->renderToggleButton() . "\n";
     echo Html::beginTag('div', $this->options);
 }
Esempio n. 4
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, 'uk-button-group');
 }
Esempio n. 5
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, 'uk-tab');
 }
Esempio n. 6
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, 'uk-button');
 }
Esempio n. 7
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 = $_GET;
     }
     Html::addCssClass($this->options, $this->navbar ? 'uk-navbar-nav' : 'uk-nav');
     if ($this->accordion) {
         $this->options['data-uk-nav'] = $this->jsonClientOptions();
     }
 }