On Fri, Nov 13, 2009 at 4:33 AM, Andrew Sledge <andrew.j.sledge@gmail.com> wrote:
Hello all,This is in relation to Zend_Form. Apparently I'm missing the obvious, but how do you change the size attribute of a ValidationTextbox element?
$this->addElement('ValidationTextBox', 'name', array(
'label' => 'Name:',
'size' => 8,
'required' => true,
'filters' => array('StringTrim'),
'regExp' => $regex,
'validators' => array(
array('Regex',false,array('/^'.$regex.'$/'))
),
'label' => 'Name:',
'size' => 8,
'required' => true,
'filters' => array('StringTrim'),
'regExp' => $regex,
'validators' => array(
array('Regex',false,array('/^'.$regex.'$/'))
),
Here is my element$this->addElement('ValidationTextBox', 'name', array('label' => 'Name:','required' => true,'filters' => array('StringTrim'),'regExp' => $regex,'validators' => array(array('Regex',false,array('/^'.$regex.'$/'))),'decorators' => array(array('DijitElement', array('maxlength' => 1)),'Errors',array('HtmlTag', array('tag' => 'div')),array('Label', array('tag' => 'div')),array('Description', array('tag' => 'div')),),));I want the input element to have the size attribute to have 8. Any and all help is most appreciated.
--
Andrew Sledge
没有评论:
发表评论