PDA

View Full Version : $ character in calendar app


Peter_Chea
06-13-2003, 04:16 PM
Hi Antun, I keep seeing the $ character in the calendar demo. What does it do?
<attribute name="eventwidth"
value="${details.bgrect.width - ( this.opened ? 38 : 0 )}"/>

antun
06-13-2003, 04:21 PM
This is a new way (in v1) of specifying attributes.


<attribute name="eventwidth"
value="${details.bgrect.width - ( this.opened ? 38 : 0 )}"/>


... is like the old:


<attribute name="eventwidth"
constraint="details.bgrect.width - ( this.opened ? 38 : 0 )"/>


Essentially it's a constraint. We're trying to make the <attribute> tag a little more user friendly.

-Antun