Zend Framework

Setting value on Zend_Dojo_Form_Element_HorizontalSlider does not work in programmatic mode

Details

  • Type: Patch Patch
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.10.8
  • Fix Version/s: 1.11.6
  • Component/s: Zend_Dojo
  • Labels:
    None

Description

Setting a value on the slider does not work in programmatic mode. - Declarative works fine.

<?
class Dojo_Form_Slider extends Zend_Dojo_Form
{
    public function init()
    {
        $severityElement = new Zend_Dojo_Form_Element_HorizontalSlider('severity');
        $severityElement->setValue(2);
        $severityElement->setMinimum(1);
        $severityElement->setMaximum(3);
        $severityElement->setDiscreteValues(100);
        $severityElement->setBottomDecorationLabels(array(
            'easy', 'medium', 'hard'
        ));
        $severityElement->setBottomDecorationParams(array(
            'list' => array(
                'style' => 'height:1em; font-size=75%;color:gray;',
            )
        ));
        $this->addElement($severityElement);
    }
}

Issue Links

Activity

Hide
Martijn Swaagman added a comment -

Correct final patch, overrides patch of bug 11301

Show
Martijn Swaagman added a comment - Correct final patch, overrides patch of bug 11301
Hide
Matthew Weier O'Phinney added a comment -

Applied to trunk and 1.11 release branch, and noted that it supercedes ZF-11301 patch.

Show
Matthew Weier O'Phinney added a comment - Applied to trunk and 1.11 release branch, and noted that it supercedes ZF-11301 patch.
Hide
Robert Basic added a comment -

Pull request for porting the patch in ZF2 is sent: https://github.com/zendframework/zf2/pull/311

Show
Robert Basic added a comment - Pull request for porting the patch in ZF2 is sent: https://github.com/zendframework/zf2/pull/311

People

Vote (2)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: