[Laszlo-dev] Constraining to class attributes

Frisco Del Rosario frisco at laszlosystems.com
Wed Nov 15 10:36:49 PST 2006


I want to constrain the width of a foo to the width defined in a  
class declaration:

<class name="blarg" width="10"/>

<view id="foo" width="${'instanceOfBlarg.width'}"

In some cases, I had an instance of blarg, but

<view id="foo" width="${'whicheverInstanceOfBlargWasLyingThere.width'}"

seemed like an inelegant thing to do.

In other cases, I didn't have an instance of blarg, and what to do  
then? I toyed with the idea of making a dummy instantiation of blarg  
and constraining to its width, but that seems horrible.




Frisco Del Rosario
Tester, OpenLaszlo and IDE4Laszlo


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20061115/4216183a/attachment.html


More information about the Laszlo-dev mailing list