faboslav/yii2-material-tabs

Animated Material Tabs widget for Yii2.

v1.1 2017-12-20 17:57 UTC

This package is not auto-updated.

Last update: 2024-12-19 21:34:54 UTC


README

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require faboslav/yii2-material-tabs "dev-master"

or add

"faboslav/yii2-material-tabs": "dev-master"

to the require section of your composer.json file.

Preview

MaterialTabsPreview

Usage

MaterialNavBar

use faboslav\materialtabs\MaterialTabs

echo MaterialTabs::widget([
    'items' => [
        [
            'label' => '<i class="material-icons">home</i>',
            'content' => 'Tab one content.'
        ],
        [
            'label' => 'Tab two',
            'content' => 'Tab two content<br><br>Text<br><br>Text',
        ],
        [
            'label' => 'Tab three',
            'content' => 'Tab three content<br>Text<br>Text',
            'active' => true
        ],
        [
            'icon' => '<i class="material-icons">people</i>',
            'label' => 'Tab four',
            'content' => 'Tab four content<br><br>Text<br>Text'
        ],
        [
            'label' => 'Tab five',
            'content' => 'Tab five content<br>Text'
        ],
    ]
]);

Licence

The MIT License (MIT)