Spyros, on 04 January 2010 - 01:17 AM, said:
I'll take a look at these problems and I'll upload a new version soon
Thanks
Thanks for instance response!
Waiting for update impatiently :-)
Useful ext :-)
Posted 05 January 2010 - 01:10 AM
spinner_1_3_1.zip (8.93K)
Posted 05 January 2010 - 04:09 AM
Spyros, on 05 January 2010 - 01:10 AM, said:
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'Time'); ?>
<?php
$this->widget('application.extensions.spinner.STimeSpinner',
array(
"name"=>"Time",
"model"=>$model,
"attribute"=>"Time",
"data"=>array(
"min"=>"06:00",
"max"=>"23:00",
"step"=>15,
"value"=>"12:00"
),
"width"=>60,
"delay"=>100,
"acceleration"=>"slow"
)
);
?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'Duration'); ?>
<?php
$this->widget('application.extensions.spinner.SNumericSpinner',
array(
"model"=>$model,
"attribute"=>"Duration",
"data"=>array(
"min"=>5,
"max"=>960,
"value"=>$model->Duration ? $model->Duration : 90,
"step"=>5
),
"width"=>40,
"text"=>"duration in minutes.",
"delay"=>130,
"acceleration"=>"slow"
)
);
?>
</div>
Posted 05 January 2010 - 05:46 AM
Spyros, on 05 January 2010 - 05:17 AM, said:
Posted 05 January 2010 - 05:50 AM
<?php
$this->widget('application.extensions.spinner.SNumericSpinner',
array(
"model"=>$event,
"attribute"=>"event_ID",
"data"=>array(
"min"=>5,
"max"=>960,
"value"=>$event->event_ID ? $event->event_ID : 90,
"step"=>5
),
"width"=>40,
"text"=>"duration in minutes.",
"delay"=>130,
"acceleration"=>"slow",
"htmlOptions"=> array(
"readonly"=>false,
),
)
);
?>
Posted 05 January 2010 - 05:51 AM
Colt, on 05 January 2010 - 05:46 AM, said:
Posted 05 January 2010 - 06:17 AM
Posted 05 January 2010 - 06:19 AM
Posted 05 January 2010 - 06:50 AM
Posted 05 January 2010 - 07:46 AM
Spyros, on 05 January 2010 - 06:50 AM, said:
Posted 16 January 2010 - 02:30 AM
//$this->htmlOptions["readonly"]= "true";
"htmlOptions"=> array(
// "readonly"=>false,
),
Posted 16 January 2010 - 04:12 AM
'htmlOptions' => array(
'size' => 4, 'maxlength' => 4,'disabled'=>'true'
),
'divOptions' => array('style' => 'display: none;')
)
);<div class='spinner' height="<?php
echo SNumericSpinner::getHeight();
?>px" <?php
if (!empty($this->divOptions))
{
foreach($this->divOptions as $name => $value)
{
echo $name . '="' . $value . '"';
} ;
}
?>
Posted 23 January 2010 - 09:25 AM
foreach($items as $i=>$item)
{
$this->widget('application.extensions.spinner.SNumericSpinner',
array(
'model' => $item,
'attribute' => '[' . $i . ']foobar',);
}
'[' . $i . ']foobar'works well with activeTextfield() and other active fields.
Posted 24 January 2010 - 03:19 AM
Posted 24 January 2010 - 12:16 PM
$_POST['model'][$i]['foobar']
foreach($items as $i=>$item)
{
$this->widget('application.extensions.spinner.SNumericSpinner',
array(
'model' => $item,
'attribute' => '[' . $i . ']foobar',);
.....<input name="model[0][foobar]" ...>while the same code works with ActiveTextFields
Posted 05 May 2010 - 06:22 PM
Posted 05 May 2010 - 10:45 PM
CoLT, on 05 May 2010 - 06:22 PM, said:
Posted 06 May 2010 - 07:30 AM
Spyros, on 05 May 2010 - 10:45 PM, said:
<p>
<b>STextSpinner:</b>
<?php $this->widget('application.extensions.spinner.STextSpinner',
array(
"name"=>"category",
"data"=>array(
"list"=> array("Category A","Category B","Category C"),
"value"=> 0,
),
"width"=>100,
"text"=>"A string spinner",
)
); ?>
</p>
Posted 06 May 2010 - 11:09 AM