Issues

ZF-11326: Passing a class for DT or DD to the DtDdWrapper

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

Description

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');

Comments

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts