>
> With the display-group you could render things like fieldset (but also any
> other element).
>
> I think what you want is dynamic behaviour which shouldn't be done with
> html/css. This is behaviour meant for javascript. With the jQuery view
> helper
> it's really easy to accomplish.
>
Display-group lends itself for easy wrapping. But a subform would do the
same trick isn't it? Okay, that's less efficient of course.
As I understand now, the purpose of a DisplayGroup is make it easy to
decorate a set of elements as a whole.
I conlude DisplayGroup would not fit this scenario, since you need to
"decorate somehere between the elements rather than it's concatenated
output".
Well, of course I need JS to do the toggling. Deciding where to put the
toggle-element could be off-loaded to Javascript of course. Good suggestion.
--
View this message in context: http://www.nabble.com/-Zend_Form--howto%3A-multiCheckbox-with-collapsible-lower-elements%E2%80%8F-tp26039072p26041355.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论