[Laszlo-dev] Attribute cascading

P T Withington ptw at openlaszlo.org
Mon Nov 13 13:18:43 PST 2006


Ben, shouldn't you be able to achieve this by using a CSS style,  
since styles inherit from parent to child by default?  Isn't that the  
right way to do it, rather than invent a new attribute mechanism?

On 2006-11-13, at 15:16 EST, Antun Karlovac wrote:

> Some attributes in LZX (e.g. datapath, font, fontsize) cascade  
> through the viewsystem.
>
> Is there a way to create user-defined attributes that behave in the  
> same way? I think it's currently done at the implementation-level  
> (i.e. classes drill up through the viewsystem until they find a  
> datapath). Should there be a way of defining a cascading attribute?
>
> See the thread here:
>
> http://forum.openlaszlo.org/showthread.php?t=7800
>
> """
>  "Inheriting" an attribute from parent to child
> Is there any way to create a new attribute which, like say font or  
> fontsize, will be "inherited" from parent to child view?
>
> Thanks
> """
>
> -Antun



More information about the Laszlo-dev mailing list