Thursday, March 02, 2006

OpenLaszlo: "value is an expression type"

"Note that value is an expression type." Aha.... this clears up some confusion I had when using setValue.

In Chapter 26 sec 5.2 of the Guide, we read:
By default attributes are typed as "expression," which means JavaScript expression. In many cases this is not what you want. ... To make sure attributes do what you want them to do, type your attributes when you declare them.
Good stuff. My only problem is that you have to get to Chapter 26 before attribute types are fully explained. That's just wrong!

[Edit For the record, attributes have the following types:
boolean | color | expression | number | size | string | text | html]

0 Comments:

Post a Comment

<< Home