leoshtika/yii2-nav-sidebar

A bootstrap sidebar nav for Yii2

Installs: 338

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

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

This package is not auto-updated.

Last update: 2024-10-27 01:44:57 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
        ],
    ],
]) ?>