1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
<?php
class forms_testDojoForm extends Zend_Dojo_Form
{
public function __construct($options=null){
parent::__construct($options);
$t1 = new Zend_Dojo_Form_Element_DateTextBox('date');
$t2 = new Zend_Dojo_Form_Element_HorizontalSlider('hslider');
$t2->setMinimum(-10);
$t2->setMaximum(10);
$t2->setDiscreteValues(11);
$t2->setIntermediateChanges(true);
$t2->setShowButtons(true);
$t2->setTopDecorationDijit('HorizontalRuleLabels');
$t2->setTopDecorationContainer('topContainer');
$t2->setTopDecorationLabels(array(' ','20','40','60','80',' '));
$this->setDecorators(array(
'FormElements',
array('TabContainer', array(
'id' => 'tabContainer',
'style' => 'width: 600px; height: 200px; border: 1px solid black;',
'dijitParams' => array(
'tabPosition' => 'top'
),
)),
'DijitForm',
));
$this->addElements(array($t1,$t2));
..... |
Partager