2007年3月8日 星期四

Repeater...

Repeater是一個Runtime Object用來建構重複的組件...
基本MXML語法如下:
<mx:Repeater Properties Events>
<UIComponent區塊>
<mx:Repeater/>

屬性裡面最常用到的就是dataProvider,透過Data Binding的技巧就可以取得資料來源,另外測試了幾個屬性:
count:限制Repeater產生的組件個數,
startingIndex:從第幾個資料來源開始產生組件,
currentItem:回傳目前被抓取的項目(回傳Object)
currentIndex:回傳目前被抓取的項目的索引(回傳Int)

沒有留言: