Re: [flexcoders] className question

2007-11-19 Thread Aaron Miller
The className property is used to reference a chunk of code (like the name
of your mxml file would do). You would have to follow all the same namespace
rules as you would if you were to create an Actionscript or mxml
class/component. Unless you have multiple data fields in your item editor
which need to be referenced by typing it to a specific class, it would
probably be better to use the DataGrid.itemEditorDataField property instead.

Best Regards,
...aaron

On 11/18/07, candysmate [EMAIL PROTECTED] wrote:

   I have an itemRenderer declared as:

 mx:itemRenderer
 mx:Component className =rendererStyle
 mx:Text
 /mx:Text
 /mx:Component
 /mx:itemRenderer

 If I use this again elsewhere I get an error 'class name specified
 more then once in document'.

 But I thought the whole idea behind class names was to be able to
 'group' components for styling etc ...?

  




-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


[flexcoders] className question

2007-11-18 Thread candysmate
I have an itemRenderer declared as:

mx:itemRenderer
  mx:Component className =rendererStyle
mx:Text

/mx:Text
  /mx:Component
/mx:itemRenderer

If I use this again elsewhere I get an error 'class name specified
more then once in document'.

But I thought the whole idea behind class names was to be able to
'group' components for styling etc ...?



RE: [flexcoders] className question

2007-11-18 Thread Alex Harui
I think the second time you just do itemRenderer=rendererStyle

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of candysmate
Sent: Sunday, November 18, 2007 6:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] className question

 

I have an itemRenderer declared as:

mx:itemRenderer
mx:Component className =rendererStyle
mx:Text
/mx:Text
/mx:Component
/mx:itemRenderer

If I use this again elsewhere I get an error 'class name specified
more then once in document'.

But I thought the whole idea behind class names was to be able to
'group' components for styling etc ...?