Take advantage of the fact that you’ve already used binding and just put the spaces in the binding _expression_.

 

label=”{‘        ‘  + itemModel.effectiveDate} Text Specification”

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shweta_parekh
Sent: Tuesday, March 07, 2006 12:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] adding white spaces ( ) in label attribute

 

Hi,

I have the a canvas like below. In the label of the canvas, I want to insert white spaces before the effectiveDate value ( {itemModel.effectiveDate} ).

<mx:Canvas id="textspec_cn" width="815" height="99%" label="{itemModel.effectiveDate} Text Specification" marginLeft="0" marginRight="0">

…...

</mx:Canvas>

I tried doing this:

label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {itemModel.effectiveDate} Text Specification" but this does not work, gives an error

Putting white spaces before the effective date does not work either.

label=" {itemModel.effectiveDate} Text Specification" //does not work

Putting white spaces before Text Specification works OK.

label=" Text Specification {itemModel.effectiveDate}" //works OK

Does anyone have any ideas? Thanks.

Shweta




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to