skeeks/yii2-mmenu-widget

The yii2-mmenu widget is a Yii 2 wrapper for the [jQuery-mmenu](http://mmenu.frebsite.nl/). A jQuery plugin for creating slick, app look-alike sliding menus for you mobile website with only one line of javascript

Installs: 1 070

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

2.0.2 2019-09-20 06:33 UTC

This package is auto-updated.

Last update: 2024-10-20 18:12:18 UTC


README

The yii2-mmenu-widget widget is a Yii 2 wrapper for the jQuery-mmenu:

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist wbraganca/yii2-mmenu-widget "*"

or add

"wbraganca/yii2-mmenu-widget": "*"

How to use

On your view file.

<?= \wbraganca\mmenu\Menu::widget([
    'items' => [
        [
            'label' => 'Home',
            'url' => '#',
            'icon' => 'glyphicon glyphicon-home'
        ],
        [
            'label' => 'Submenu',
            'url' => '',
            'icon' => 'glyphicon glyphicon-plus-sign',
            'items' => [
                [
                    'label' => 'link 1',
                    'url' => '#',
                    'icon' => 'glyphicon glyphicon-file',
                ],
                 [
                    'label' => 'link 2',
                    'url' => '#',
                    'icon' => 'glyphicon glyphicon-file',
                ],
            ]
        ]
    ]
]) ?>