The JPanelMenu widget is a wrapper for the JPanelMenu jQuery plugin,
"for easily creating and managing off-canvas content."., (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist raoul2000/yii2-jpanelmenu-widget "*"
or add, (*4)
"raoul2000/yii2-jpanelmenu-widget": "*"
to the require section of your composer.json
file., (*5)
Usage
Using JPanelMenu widget is easy. For instance, add following code to your view file :, (*6)
<button class="trigger1">toggle menu</button>
[
'menu' => '#menu1',
'trigger' => '.trigger1',
'duration' => 100
]
]);
?>
For more information on the plugin options, please refer to JPanelMenu github page., (*7)
Alternative
License
yii2-jpanelmenu-widget is released under the BSD 3-Clause License. See the bundled LICENSE.md
for details., (*8)