Issue Type: Improvement Created: 2011-04-26T12:58:07.000+0000 Last Updated: 2012-07-30T13:08:31.000+0000 Status: Open Fix version(s): Reporter: Matthieu Larcher (mattso) Assignee: Frank Brückner (frosch) Tags: - Zend_Form
Related issues: Attachments: - DtDdWrapper.patch
Adding the ability to pass a class to the DtDdWrapper for it to use on the DT or the DD.
It's always nice to be able to reference a given element or type of element, be it for CSS styling or JS handling.
For example,DtDDWrapper is used by default for submit buttons, and one could often want not to display at all the (empty) DT, or center the submit button within its wrapping DD.
It could be used like so :
<pre class="highlight">
$submit->getDecorator('DtDdWrapper')->setOption('dtClass','submit-dt-wrapper');
$submit->getDecorator('DtDdWrapper')->setOption('ddClass','submit-dd-wrapper');
Posted by Matthieu Larcher (mattso) on 2011-04-26T13:02:03.000+0000
The modified class
Posted by Matthieu Larcher (mattso) on 2011-04-26T13:02:56.000+0000
the class patch