PHP code example of faboslav / yii2-material-tabs

1. Go to this page and download the library: Download faboslav/yii2-material-tabs library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

faboslav / yii2-material-tabs example snippets


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'
        ],
    ]
]);

$ php composer.phar