Yii 1.1: juislider

jQuery-based slider
3 followers

This extension has been deleted. See jui.

Documentation

Requirements

  • Yii 1.0 or above

Installation

  • Extract the release file under protected/extensions:

gunzip archive.tar.gz

tar xvf archive.tar

Usage

Multiple handles:

<? echo CHtml::form(); ?>
<? echo CHtml::textfield('x1'); ?><br />
<? echo CHtml::textfield('x2'); ?><br />
<? echo CHtml::textfield('x3'); ?><br />
<?
$this->widget('application.extensions.juislider.ESlider',
              array(
                    'name'=>'slider',
                    'theme'=>'cupertino',
                    'enabled'=>true,
                    'minValue'=>-10,
                    'maxValue'=>10,
                    'steps'=>20,
                    'value'=>array(-10,0),
                    'linkedElements'=>array('x1','x2'),
                    'linkedRangeElement'=>'x3',
                    'numberOfHandlers'=>2,
                    'range'=>true,
                    'htmlOptions'=>array('style'=>'width:200px;height:10px;')
                   )
             );
?>
</form>

Single handle in a table:

<? echo CHtml::form(); ?>
<table>
<tr>
<td>
<? echo CHtml::textfield('x1'); ?>
</td>
<td>
<?
$this->widget('application.extensions.juislider.ESlider',
              array(
                    'name'=>'slider',
                    'theme'=>'dotluv',
                    'enabled'=>true,
                    'minValue'=>-20,
                    'maxValue'=>20,
                    'stepping'=>5,
                    'linkedElements'=>array('x1'),
                    'htmlOptions'=>array('style'=>'width:250px;height:10px;')
                   )
             );
?>
</td>
</tr>
</table>
</form>

Change Log

20090121

  • Deprecated. C'est fini.

20081209

  • 1.1 - No you can set showValueOn to select if you want to show the values on slide or on change.
  • 1.0 - Initial release.

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet