本文整理汇总了PHP中yii\bootstrap\Tabs::init方法的典型用法代码示例。如果您正苦于以下问题:PHP Tabs::init方法的具体用法?PHP Tabs::init怎么用?PHP Tabs::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类yii\bootstrap\Tabs
的用法示例。
在下文中一共展示了Tabs::init方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
/**
* Initializes the widget.
*/
public function init()
{
if ($this->justified) {
Html::addCssClass($this->options, 'nav-justified');
}
Html::addCssClass($this->options, 'nav ' . $this->navType);
parent::init();
}
示例2: init
/**
* 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);
}
示例3: init
public function init()
{
parent::init();
ob_start();
ob_implicit_flush(false);
}
示例4: init
/**
* @inheritdoc
*/
public function init()
{
parent::init();
Html::addCssClass($this->options, 'widget-memory-tabs');
$this->registerJs();
}
示例5: init
/**
* Initializes the widget.
*/
public function init()
{
parent::init();
Html::addCssClass($this->options, 'wt-tabs');
$this->setItemIds();
}
示例6: init
/**
* 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);
}
示例7: init
/**
* Initializes the widget.
*/
public function init()
{
parent::init();
Html::removeCssClass($this->options, ['nav', $this->navType]);
Html::addCssClass($this->options, 'nav-tabs-custom');
}