Class common\widgets\Tabs\Tabs

Inheritancecommon\widgets\Tabs\Tabs » yii\bootstrap\Tabs

Виджет Bootstrap вкладок Tabs с использованием jquery плагина PropellerKit на базе стандартного виджета \yii\bootstrap\Tabs.

    <?= Tabs::widget([
        'items' => [
            [
                'label' => 'Main',
                'content' => $form->field($model, 'post_name')->textInput(),
            ],
            [
                'label' => 'Additional',
                'content' => $form->field($model, 'post_description')->textInput(),
            ],
        ],
    ]) ?>

Public Methods

Hide inherited methods

MethodDescriptionDefined By
run() Выполнение виджета common\widgets\Tabs\Tabs

Property Details

$headerOptions public property
public $headerOptions = ['role' => 'presentation']
$itemOptions public property
public $itemOptions = ['role' => 'tabpanel']
$linkOptions public property
public $linkOptions = ['role' => 'tab']
$options public property
public $options = ['role' => 'tablist']

Method Details

container() protected method

protected void container ( $ul, $tabContent )
$ul
$tabContent
registerAssets() protected method

protected void registerAssets ( )
renderItems() protected method

protected void renderItems ( )
run() public method

Выполнение виджета

public void run ( )