2017 © Pedro Peláez
 

yii2-extension yii2-nav-x

An extended bootstrap Nav widget for Yii 2 with submenu drilldown.

image

kartik-v/yii2-nav-x

An extended bootstrap Nav widget for Yii 2 with submenu drilldown.

  • Wednesday, February 7, 2018
  • by kartik-v
  • Repository
  • 1 Watchers
  • 23 Stars
  • 92,362 Installations
  • PHP
  • 9 Dependents
  • 0 Suggesters
  • 6 Forks
  • 4 Open issues
  • 8 Versions
  • 8 % Grown

The README.md

Krajee Logo
yii2-nav-x
Donate       kartikv

[![Stable Version](https://poser.pugx.org/kartik-v/yii2-nav-x/v/stable)](https://packagist.org/packages/kartik-v/yii2-nav-x) [![Unstable Version](https://poser.pugx.org/kartik-v/yii2-nav-x/v/unstable)](https://packagist.org/packages/kartik-v/yii2-nav-x) [![License](https://poser.pugx.org/kartik-v/yii2-nav-x/license)](https://packagist.org/packages/kartik-v/yii2-nav-x) [![Total Downloads](https://poser.pugx.org/kartik-v/yii2-nav-x/downloads)](https://packagist.org/packages/kartik-v/yii2-nav-x) [![Monthly Downloads](https://poser.pugx.org/kartik-v/yii2-nav-x/d/monthly)](https://packagist.org/packages/kartik-v/yii2-nav-x) [![Daily Downloads](https://poser.pugx.org/kartik-v/yii2-nav-x/d/daily)](https://packagist.org/packages/kartik-v/yii2-nav-x)

An extended bootstrap Nav widget for Yii Framework 2 with submenu drilldown. This widget extends the \yii\bootstrap\Nav widget for Bootstrap 3.x and \yii\bootstrap4\Nav widget for Bootstrap 4.x \yii\bootstrap5\Nav widget for Bootstrap 5.x with some additional controls and adding the CSS Styles for enabling a submenu drilldown. The dropdown menu style is optimized for both desktop and mobile devices. The drilldown is triggered on active instead of hover so that it works equally well on mobile devices. The extension uses the one of the following Dropdown Class extensions by default for rendering dropdown navigation, but this can be overridden:, (*1)

  • \kartik\dropdown\DropdownX for Bootstrap 3.x
  • \kartik\bs4dropdown\Dropdown for Bootstrap 4.x
  • \kartik\bs5dropdown\Dropdown for Bootstrap 5.x

Demo

You can see detailed documentation on usage of the extension., (*2)

Installation

Install the dependencies depending on the Bootstrap version used in your app:, (*3)

  1. For Bootstrap 3.x install kartik-v/yii2-dropdown-x
$ php composer.phar require kartik-v/yii2-dropdown-x "@dev"
  1. For Bootstrap 4.x install kartik-v/yii2-bootstrap4-dropdown
$ php composer.phar require kartik-v/yii2-bootstrap4-dropdown "@dev"
  1. For Bootstrap 5.x install kartik-v/yii2-bootstrap5-dropdown
$ php composer.phar require kartik-v/yii2-bootstrap5-dropdown "@dev"

The preferred way to install this extension is through composer., (*4)

NOTE: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json., (*5)

Either run, (*6)

$ php composer.phar require kartik-v/yii2-nav-x "@dev"

or add, (*7)

"kartik-v/yii2-nav-x": "@dev"

to the require section of your composer.json file., (*8)

Usage

use kartik\nav\NavX;
echo NavX::widget([
    'options' => ['class' => 'nav nav-pills'],
    'items' => [
        ['label' => 'Action', 'url' => '#'],
        ['label' => 'Submenu', 'items' => [
            ['label' => 'Action', 'url' => '#'],
            ['label' => 'Another action', 'url' => '#'],
            ['label' => 'Something else here', 'url' => '#'],
        ]],
        ['label' => 'Something else here', 'url' => '#'],
        '<li class="divider"></li>',
        ['label' => 'Separated link', 'url' => '#'],
    ],
    'encodeLabels' => false
]);

License

yii2-nav-x is released under the BSD-3-Clause License. See the bundled LICENSE.md for details., (*9)

The Versions

07/02 2018

dev-master

9999999-dev https://github.com/kartik-v/yii2-nav-x

An extended bootstrap Nav widget for Yii 2 with submenu drilldown.

  Sources   Download

BSD-3-Clause BSD 3-Clause

The Requires

 

extension yii2 widget menu context mouse click

13/05 2017

v1.2.1

1.2.1.0 https://github.com/kartik-v/yii2-nav-x

An extended bootstrap Nav widget for Yii 2 with submenu drilldown.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 widget menu context mouse click

06/12 2014

1.2.0.x-dev

1.2.0.9999999-dev https://github.com/kartik-v/yii2-nav-x

An extended bootstrap Nav widget for Yii 2 with submenu drilldown.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 widget menu context mouse click

06/12 2014

v1.2.0

1.2.0.0 https://github.com/kartik-v/yii2-nav-x

An extended bootstrap Nav widget for Yii 2 with submenu drilldown.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 widget menu context mouse click

08/11 2014

1.1.0.x-dev

1.1.0.9999999-dev https://github.com/kartik-v/yii2-nav-x

An extended bootstrap Nav widget for Yii 2 with submenu drilldown.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 widget menu context mouse click

08/11 2014

v1.1.0

1.1.0.0 https://github.com/kartik-v/yii2-nav-x

An extended bootstrap Nav widget for Yii 2 with submenu drilldown.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 widget menu context mouse click

05/10 2014

1.0.0.x-dev

1.0.0.9999999-dev https://github.com/kartik-v/yii2-nav-x

An extended bootstrap Nav widget for Yii 2 with submenu drilldown.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 widget menu context mouse click

05/10 2014

v1.0.0

1.0.0.0 https://github.com/kartik-v/yii2-nav-x

An extended bootstrap Nav widget for Yii 2 with submenu drilldown.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 widget menu context mouse click