2009年3月26日星期四

Re: [fw-mvc] remove decorator

2009/3/26 Ed Lazor <edlazor@internetarchitects.biz>:
> removeDecorator is working on the submit button for me - it's just not
> working on the hidden element.
>
> Matthew, is removeDecorator supposed to work on the hidden element or
> do I need to use CSS to set display none on those items?
>
> -Ed
>
>
>
> On Thu, Mar 26, 2009 at 1:29 PM, Matthew Weier O'Phinney
> <matthew@zend.com> wrote:
>> -- keith Pope <mute.pop3@googlemail.com> wrote
>> (on Thursday, 26 March 2009, 08:07 PM +0000):
>>> The reason the $submit->removeDecorator('DtDdWrapper'); does not work
>>> is because the DtDdWrapper is not registered on elements, the
>>> DtDdWrapper decorator is only used by DisplayGroups and Subforms.
>>
>> That's actually not true. While most elements have the default
>> decorators you listed previously, several types are handled differently
>> -- image, submit, button, captcha, and hidden all behave slightly
>> differently, and some of these have the DtDdWrapper.

Ed I would maybe use getDecorators() and var_dump() the result, this
way you can see what decorators are registered and then work from
there.

>
>

--
----------------------------------------------------------------------
[MuTe]
----------------------------------------------------------------------

没有评论: