문제

I am using a simple Repeater which has a single component(TextInput).

    <mx:Repeater id="myrep" dataProvider="{myAC}" > 
        <local:TextInputRepeater id="tiRepeater" displaytext="{myrep.currentItem}" />
    </mx:Repeater>

    <mx:Button label="Get Data" click="getNewValues(event)" />

The repeater has following code:

[Bindable]
public var displaytext:String = "";

<mx:TextInput id="repeatText" text="{displaytext}" change="repeatText_changeHandler(event)"/>

Here is what I want : on click of button in getNewValues function, I want to read the values (user might possibly have changed in the textInputs).

도움이 되었습니까?

해결책

Well, it was a silly issue which I overlooked.

Solution is, tiRepeater[index] will give you the udpated repeater object.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top