[Laszlo-user] Idea for improving <text>

P T Withington ptw at pobox.com
Tue Nov 11 10:53:24 PST 2008


<text> can take formatted output by saying:

     <attribute name="value" value="1066" type="number" />
     <text>
       <handler name="oninit">
         this.format('%#X', parent.value);
       </handler>
     </text>

which will display `0X42A`.

That makes it hard to use constraints with formatting.  I could say:

     <text text="${this.formatToString('%#X', parent.value)}" />

But, I wonder if it would be more useful if I could say:

     <text formatting="%#X" data="${parent.value}" />

?



More information about the Laszlo-user mailing list