sidebar on the right side of the browser. slides in on mouse over and slides out automatically when mouse leaves the sidebar.
i stole all the code from the RightMenu in the Yii Playground. so all credits go to the developers of the Yii Playground project.
only thing i have done is wrapping this code into a Yii Extension for generic use.
Developed with Yii 1.1.12
Copy the folder 'rightsidebar' to protected/extensions
$this->beginWidget('application.extensions.rightsidebar.RightSidebar'); //put your sidebar content here $this->endWidget();
$this->beginWidget('application.extensions.rightsidebar.RightSidebar', array('title' => 'Menu', 'collapsed' => true)); $this->widget('zii.widgets.CMenu', array( 'items' => array( array('label' => 'Home', 'url' => array('site/index')), array('label' => 'Products', 'url' => array('product/index'), 'items' => array( array('label' => 'New Arrivals', 'url' => array('product/new')), array('label' => 'Most Popular', 'url' => array('product/popular')), )), ), )); $this->endWidget();
this is not really a demo of this extension, but i stole all the code so it looks and works exactly like RightMenu on the yii playground page.
Total 2 comments
nice extension .
for now it just fixed to the right side of page , it will be better to have a element floated to any side (top, bottom , left , right) just like this jquery plugin : jquery.sidebar on github and the demo
it will be better have the configuable "stiky" capability :)
Leave a comment
Please login to leave your comment.