Right.
cssable was a temporary mechanism for using styles while we worked on
style constraints. I think cssable should be removed. The $style
syntax is cleaner, and it leaves more room for platform developers to
optimize the style implementation.
On Oct 5, 2006, at 12:46 PM, P T Withington wrote:
> I think you can simplify further:
>
> <class name="box" traits="cssable">
> <view height="100" width="100" bgcolor="$style{'boxColor'}" />
> </class>
>
>
> On 2006-10-05, at 14:55 EDT, Frisco Del Rosario wrote:
>
>> I am trying to understand how the _applyCSS method works with the
>> cssable trait. The following was copied from B. Shine's /test/style/
>> neighborhood/neighborhoodclasses.lzx, then reduced to its minimum,
>> but perhaps I reduced it too much.
>>
>> The problem is that the instance of the box class is not blue.
>>
>> <canvas height="500" width="500" debug="true">
>>
>> <include href="utils/traits/cssable.lzx" />
>>
>> <stylesheet>
>> box { boxColor: "0x0000FF"}
>> </stylesheet>
>>
>> <class name="box" traits="cssable">
>>
>> <attribute name="cssPropertyMap"
>> value="{boxColor:'boxColor'}" />
>> <handler name="onconstruct" method="_applyCSS" />
>>
>> <view height="100" width="100" bgcolor="${'boxColor'}" />
>>
>> </class>
>>
>> <box/>
>>
>> </canvas>
>>
>>
>>
>> --
>> Frisco Del Rosario
>> Tester, OpenLaszlo and IDE4Laszlo
>>
>>
>>
>>
>> _______________________________________________
>> Laszlo-dev mailing list
>> [email protected]
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
>
> _______________________________________________
> Laszlo-dev mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev