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
- Host: GitHub
- URL: https://github.com/raoul2000/yii2-sidr-widget
- Owner: raoul2000
- License: bsd-3-clause
- Created: 2014-11-20T10:49:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-14T20:43:26.000Z (over 9 years ago)
- Last Synced: 2024-10-29T00:44:58.110Z (7 months ago)
- Language: PHP
- Size: 140 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGE.md
- License: LICENSE.md
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.