Class vitalik74\primer\FilterList

Inheritancevitalik74\primer\FilterList » yii\bootstrap\Nav

Class provide html code a vertical list of filters. Class based on \yii\bootstrap\Nav and override him.

Example use in your view:

use vitalik74\primer\FilterList;

<div class="site-state">
<?= FilterList::widget([
     'items' => [
         ['label' => 'Account', 'url' => ['log/in'], 'active' => true],
         ['label' => 'Profile', 'url' => 'log/out']
]) ?>

See also

Method Details

init() public method

void init( )
renderItem() public method

void renderItem$item )
renderItems() public method

void renderItems( )
run() public method

void run( )