Ok, I have a custom control created to handle the formatting inside each of my
gridItem. I want to pass the day object that is the current item of the
Repeater into this custom control. How do I define the variable in side my
custom control to accept on object of type "Day" defined in a Day.as file?
That is what the repeater current item will pass in if it is looping over an
array of Day objects correct?
<mx:Repeater
id="dayCells"
dataProvider="{testStuff}"
startingIndex="{weekRows.currentItem}"
count="7">
<mx:GridItem width="14%">
<ns1:dayFormat2 dayData="{dayCells.currentItem}" />
</mx:GridItem>
</mx:Repeater>
Ian Skinner wrote:
> <mx:Grid>
> <mx:Repeater id="weekRows" dataProvider="{weeksAry}">
> <mx:GridRow>
> <mx:Repeater
> id="dayCells"
> dataProvider="{testStuff}"
> startingIndex="{weekRows.currentItem}"
> count="7">
> <mx:GridItem>
> <mx:Label text="{dayCells.currentItem}" />
> </mx:GridItem>
> </mx:Repeater>
> </mx:GridRow>
> </mx:Repeater>
> </mx:Grid>
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
---------
| 1 | |
--------- Binary Soduko
| | |
---------
"C code. C code run. Run code run. Please!"
- Cynthia Dunning
Confidentiality Notice: This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:37:2850
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/37
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:37
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54