leoshtika/yii2-nav-sidebar

A bootstrap sidebar nav for Yii2

Installs: 249

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.0.0 2016-08-13 21:45 UTC

README

A bootstrap sidebar navigation for Yii2

How to install?

Get it via composer by adding the package to your composer.json:

{
  "require": {
    "leoshtika/yii2-nav-sidebar": "*"
  }
}

Alternatively just run composer require leoshtika/yii2-nav-sidebar.

You may also check the package information on packagist.

Usage

<?= leoshtika\bootstrap\NavSidebar::widget([
    'items' => [
        [
            'url' => ['site/index'],
            'label' => 'Home',
            'icon' => 'home' // This is a bootstrap icon name
        ],
        [
            'url' => ['site/about'],
            'label' => 'about',
            'icon' => 'info-sign' // This is a bootstrap icon name
        ],
    ],
]) ?>