pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gkbr...@mac.com>
Subject Re: buttonData
Date Fri, 09 Oct 2009 12:30:43 GMT
On the surface, this seems like a reasonable suggestion, but there are  
a few problems with it. The Button class would need to know that:

a) The string value in the attribute represents a JSON object
b) It should convert the value of the "icon" property to a URL
c) The URL in the "icon" property actually represents an image, and  
not the URL of some other arbitrary data

Button data is currently simply treated as an untyped Object that the  
renderer is responsible for knowing how to paint. Building this logic  
into Button would create a hard association between a button and its  
content, which we don't want.


On Oct 9, 2009, at 1:15 AM, Vicente de Rivera III wrote:

> how about reducing the declaration for buttons?
>
>      <PushButton buttonData="{text:'clickme', icon:'@button.png'}" />
>
> good pm everyone!


Mime
View raw message