2017 © Pedro Peláez
 

yii2-extension yii2-superfish-menu

Yii2 superfish jQuery menu widget

image

demogorgorn/yii2-superfish-menu

Yii2 superfish jQuery menu widget

  • Friday, February 10, 2017
  • by demogorgorn
  • Repository
  • 1 Watchers
  • 0 Stars
  • 154 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Yii2 Superfish jQuery menu widget

This is the Yii2 Superfish jQuery menu widget that renders a nice looking menu., (*1)

Example of usage of the widget., (*2)

 echo \demogorgorn\superfish\Superfish::widget([
    'options' => [
        'class' => 'uk-float-right',
    ],
    'items' => [
        ['label' => 'First level menu item', 'url' => ['/site/index']],
        ['label' => 'First level menu item', 'url' => ['/site/preimushestva']],
        ['label' => 'First level menu item', 'url' => ['/site/juridicheskie-uslugi']],
        ['label' => 'First level menu item', 'url' => ['/site/tarify']],
        ['label' => 'First level menu item', 'url' => ['/site/publikacii']],
        [
            'label' => 'First level menu item', 
            'url' => ['/site/kontakty'],
            'items' => [
                [
                    'label' => 'Second level menu item', 
                    'url' => ['/site/index'],
                    'items' => [
                        ['label' => 'Third level menu item', 'url' => ['/site/index']],
                        ['label' => 'Third level menu item', 'url' => ['/site/preimushestva']],
                        ['label' => 'Third level menu item', 'url' => ['/site/juridicheskie-uslugi']],
                        ['label' => 'Third level menu item', 'url' => ['/site/tarify']],
                        ['label' => 'Third level menu item', 'url' => ['/site/publikacii']],
                    ],
                ],
                ['label' => 'Second level menu item', 'url' => ['/site/preimushestva']],
                [
                   'label' => 'Second level menu item', 
                   'url' => ['/site/juridicheskie-uslugi'],
                   'options' => ['class' => 'li tag options'],
                   'linkOptions' => ['class' => 'link optionts'],   
                ],
                ['label' => 'Second level menu item', 'url' => ['/site/tarify']],
                ['label' => 'Second level menu item', 'url' => ['/site/publikacii']],
            ],
        ],
    ],
  ]);

Installation

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

Either run, (*4)

php composer.phar require demogorgorn/yii2-superfish-menu "*"

or add, (*5)

"demogorgorn/yii2-superfish-menu": "*"

to the require section of your composer.json file and run composer update., (*6)

The Versions

10/02 2017

dev-master

9999999-dev https://github.com/demogorgorn/yii2-superfish-menu

Yii2 superfish jQuery menu widget

  Sources   Download

MIT

The Requires

 

extension yii widget menu superfish