[Seaside] How to include style for a component composed by other
jfitzell at gmail.com
Mon Jan 4 16:06:20 UTC 2010
No, your root component can have a #renderContentOn: method. The
default behaviour if there isn't one is to simply render each of the
children in order, but I'd say more or less nobody relies on that
behaviour. In your renderContentOn: method, you simple do "html
render: childComponent" wherever you want one of the children rendered
(and yes, you should return them from #children also).
On Mon, Jan 4, 2010 at 7:05 AM, Cyrille Delaunay <cy.delaunay at gmail.com> wrote:
> Here is what I would like to do with my apllication:
> - I have a root component composed by several components. If I understand
> well how to do that, I just define a 'children' method wich define the
> subcomponents of this root component. I can not define a "renderContentOn:"
> method in the root component, but only in the subcomponents. Am I right?
> - Therefor, I can specify some CSS Classes or Ids to the subcompenent but
> not for the whole root component. Imagine I want a specific background color
> for my root component and inside him, a specific background colour for each
> subcomponent (so that between each of them we see the 'root colour'). How
> can I do that?
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside