Wrap component with a component?

20 views
Skip to first unread message

jlmi...@kahalawai.com

unread,
Feb 15, 2014, 1:24:46 AM2/15/14
to mont...@googlegroups.com
Hi,

Is it possible to wrap a component with another component?  Like a PageWrapper and WOComponentContent in WebObjects speak?

Thanks in advance,

Johnny

François Frisch

unread,
Feb 15, 2014, 2:04:03 AM2/15/14
to mont...@googlegroups.com
Yes, the equivalent of the WOComponentContent is to include add the data-param="*" attribute to any element of your template (example).
Additionally you can define multiple subsection to be moved into the component's template. To achieve this you need to name the data-param attribute data-param="foo" in the template and provide the equivalent data-arg="foo" when you use it  (example) and (example usage).

jlmi...@kahalawai.com

unread,
Feb 15, 2014, 9:54:59 PM2/15/14
to mont...@googlegroups.com
Ah, of course.

I should have thought to look a repetition.  That's really cool about multiple subsections and using it with a splitter as well. 
Reply all
Reply to author
Forward
0 new messages