PHP code example of raoul2000 / yii2-jpanelmenu-widget

1. Go to this page and download the library: Download raoul2000/yii2-jpanelmenu-widget library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

raoul2000 / yii2-jpanelmenu-widget example snippets


<!-- This is the menu that will be rendered in our side panel -->
<div style="display:none;">
	<div id="menu1">
		<h3>Menu Options</h3>
		<hr/>
		<ul class="nav nav-pills nav-stacked">
		  <li role="presentation" class="active"><a href="#">Home</a></li>
		  <li role="presentation"><a href="#">Profile</a></li>
		  <li role="presentation"><a href="#">Messages</a></li>
		</ul>
	</div>
</div>

<!-- This button will trigger menu open/close actions-->
<button class="trigger1">toggle menu</button>


	// create and register the widget with some options.
	raoul2000\widget\jpanelmenu\JPanelMenu::widget([
		'pluginOptions' => [
			'menu' => '#menu1',
			'trigger' => '.trigger1',
			'duration' => 100
		]
	]);

php composer.phar