An open API service indexing awesome lists of open source software.

https://github.com/raoul2000/yii2-sidr-widget

yii2 wrapper for the Sidr jQuery plugin
https://github.com/raoul2000/yii2-sidr-widget

Last synced: 6 months ago
JSON representation

yii2 wrapper for the Sidr jQuery plugin

Awesome Lists containing this project

README

        

yii2-sidr-widget
==========================
The **Sidr widget** is a wrapper around the [Sidr jQuery plugin](http://www.berriart.com/sidr/),
for creating side menus and "*the easiest way for doing your menu responsive*".

Installation
------------

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist raoul2000/yii2-sidr-widget "*"
```

or add

```
"raoul2000/yii2-sidr-widget": "*"
```

to the require section of your `composer.json` file.

Usage
-----
Using Sidr widget is easy. For example :

```php

open/close Menu

Demos & Usage



Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Quasi nihil ab possimus temporibus
illum ullam molestiae aliquam maiores .


= Sidr::widget([
'selector' => '#open-menu',
'pluginOptions' => [
'name' => 'sidr-menu',
'source' => '#demoheader, #demo-content',
'onClose' => new yii\web\JsExpression('
function() {
alert("bye bye side menu !");
}
')
]
]); ?>
```

For more information on the plugin options, please refer to [Sidr github page](https://github.com/artberri/sidr/).

Alternative
----------
- [yii2-jpanelmenu-widget](https://github.com/raoul2000/yii2-jpanelmenu-widget)

License
-------

**yii2-sidr-widget** is released under the BSD 3-Clause License. See the bundled `LICENSE.md` for details.