init() public method

Initializes the widget.
public init ( )
Beispiel #1
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     if ($this->justified) {
         Html::addCssClass($this->options, 'nav-justified');
     }
     Html::addCssClass($this->options, 'nav ' . $this->navType);
     parent::init();
 }
Beispiel #2
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->_pluginName = 'tabsX';
     if (empty($this->containerOptions['id'])) {
         $this->containerOptions['id'] = $this->options['id'] . '-container';
     }
     if (ArrayHelper::getValue($this->containerOptions, 'data-enable-cache', true) === false) {
         $this->containerOptions['data-enable-cache'] = "false";
     }
     $this->registerAssets();
     Html::addCssClass($this->options, 'nav ' . $this->navType);
     $this->options['role'] = 'tablist';
     $css = self::getCss("tabs-{$this->position}", $this->position != null) . self::getCss("tab-align-{$this->align}", $this->align != null) . self::getCss("tab-bordered", $this->bordered) . self::getCss("tab-sideways", $this->sideways && ($this->position == self::POS_LEFT || $this->position == self::POS_RIGHT)) . self::getCss("tab-height-{$this->height}", $this->height != null && ($this->position == self::POS_ABOVE || $this->position == self::POS_BELOW)) . ' ' . ArrayHelper::getValue($this->pluginOptions, 'addCss', 'tabs-krajee');
     Html::addCssClass($this->containerOptions, $css);
 }
Beispiel #3
0
 public function init()
 {
     parent::init();
     ob_start();
     ob_implicit_flush(false);
 }
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, 'widget-memory-tabs');
     $this->registerJs();
 }
Beispiel #5
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, 'wt-tabs');
     $this->setItemIds();
 }
Beispiel #6
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, 'nav ' . $this->navType);
     if (empty($this->containerOptions)) {
         Html::addCssClass($this->containerOptions, 'nav-tabs-custom');
     }
     echo Html::beginTag('div', $this->containerOptions);
 }
Beispiel #7
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Html::removeCssClass($this->options, ['nav', $this->navType]);
     Html::addCssClass($this->options, 'nav-tabs-custom');
 }