class MyForm extends Zend_Dojo_Form ...
... after all elements created ...
// Whole form insite a tabcontainer and <dl class="zend_form"> tag...
$this->setDecorators(array(
'FormElements',
array('TabContainer',array('design' => 'headline',
'style'=>'height:600px; width:100%', 'id' => 'form-tab-container')),
array('HtmlTag', array('tag' => 'dl', 'class' => 'zend_form')),
'Form',
));
// Every displaygroup inside contentpane
$this->setDisplayGroupDecorators(array(
'FormElements',
'Fieldset',
array('ContentPane', array('region' => 'top', 'style' =>
'background-color: white; padding: 10px')),
));
Maybe I'm missing something... but it works perfectly...
Of course, you must put "submit" (and any other button) inside every
displaygroup.
Il giorno 03/mar/10, alle ore 14:49, Bart McLeod ha scritto:
> but then you can't use Dojo, it is wether Dojo or jQuery, not both
> at the same time...
> But then, I prefer jQuery anyway
>
> -Bart
>
> Jurian Sluiman schreef:
>>
>> On Wednesday 03 Mar 2010 10:37:02 Emanuele Deserti wrote:
>>
>>> Hi to all,
>>>
>>> it's possible to configure a Zend_Form object for display all
>>> displaygroup inside different tabs (using tabContainer and
>>> contentPane
>>> of Zend_Dojo)?
>>>
>>> One displaygroup = one tabs
>>> Submit and Reset button = OUTSIDE the TabContainer OR in ALL tabs...
>>>
>>> There is a "simple" way or I need custom decorators and custom code?
>>>
>>> Thanks in advance
>>>
>>
>> The ZendX_JQuery package provides tabbed forms by using the
>> ZendX_JQuery_Form
>> instance. It loads a form with a TabContainer decorator and you can
>> add
>> multiple form instances with the TabPane decorator.
>>
>> The complete howto is at the manual:
>> http://framework.zend.com/manual/en/zendx.jquery.form.html
>>
>> Regards, Jurian
>>
>
> --
> Bart McLeod
> Space Web
> Middenlaan 47
> 6865 VN Heveadorp
> The Netherlands
> t +31(0)26 3392952
> m 06 51 51 89 71
> @ info@spaceweb.nl
> www.spaceweb.nl
> <zce_logo.gif><php5-zce-logo-new.gif> <zf-zce-logo.gif>
> Bart McLeod is a Zend Certified Engineer.
>
> Click to verify!
>
> <logo_230.gif>
---
Emanuele Deserti
Netwing S.r.l.
<emanuele.deserti@netwing.it>
Tel.: 0532 - 1912002
http://www.netwing.it
没有评论:
发表评论