[Seaside] Magritte MAContainer css

Isaiah Perumalla cappadonza at hotmail.com
Mon Sep 24 12:08:16 UTC 2007

Thanks Lukas.

What i did was i moved #attributes to MADescription so that all magritte
descriptions undestand #attributes and #attributes: . now on the class side
of MADescription i added #defaultAttributes which answers an instance of
WAHtmlAttributes by default.

Now for MADescriptionComponent i added 
	^ self description attributes copy
so that all magritte description components understand attributes message.

This way all MAComponentRenderer can use MADescription>>attributes and
MADescriptionComponent>>attributes to add any html attributes while
rendereing any descriptions including containers.

it work quite well for me, do you see any potential pitfalls doing it this
way, it this good enoguh to be a more generic solution

Lukas Renggli wrote:
>> how do you set the css class for a MAContainer Component.
>> i cant use set attributes (#class:, #id:)  because i dont think
>> MAContainer
>> understands #attributes.
>> is there an easy way to do this or should i just create a custom
>> MAComponentRenderer
> That could be improved indeed.
> What I always did for now is to wrap the Magritte container in some
> <div id="formcontext">, so that you can style the form using the css
> selector "#formcontext form".
> Lukas
> -- 
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

View this message in context: http://www.nabble.com/Magritte-MAContainer-css-tf4495599.html#a12858620
Sent from the Squeak - Seaside mailing list archive at Nabble.com.

More information about the seaside mailing list