rightsidebar dynamic sidebar slider on the right side of the browser

  1. Requirements
  2. Installation
  3. Usage
  4. Parameters
  5. Example
  6. Resources

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.

Requirements

Developed with Yii 1.1.12

Installation

Copy the folder 'rightsidebar' to protected/extensions

Usage

$this->beginWidget('application.extensions.rightsidebar.RightSidebar');
    //put your sidebar content here
$this->endWidget();

Parameters

  • title : @var String title of the sidebar widget , default = 'RightSidebar'
  • collapsed : @var boolean widget starts collapsed or expanded, default = false

Example

$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();

Resources

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.

4 0
9 followers
588 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: FlavorFlav
Created on: Mar 16, 2013
Last updated: 11 years ago

Downloads

show all

Related Extensions