开发者

How to put formitems in viewstack in flex?

开发者 https://www.devze.com 2022-12-12 08:49 出处:网络
How to put form items in view stack in flex?, so that i can get selected form item 开发者_JAVA百科through one comboBox<mx:ComboBox id=\"cb\">

How to put form items in view stack in flex?, so that i can get selected form item 开发者_JAVA百科through one comboBox


<mx:ComboBox id="cb">
    <mx:dataProvider>
        <mx:Array>
            <mx:String>Label-1</mx:String>
            <mx:String>Label-2</mx:String>
            <mx:String>Label-3</mx:String>
        </mx:Array>
    </mx:dataProvider>
</mx:ComboBox>

<mx:ViewStack id="vs" selectedIndex="{cb.selectedIndex}">
    <mx:FormItem label="Label-1">
        <mx:TextInput/>
    </mx:FormItem>
    <mx:FormItem label="Label-2">
        <mx:TextInput/>
    </mx:FormItem>
    <mx:FormItem label="Label-3">
        <mx:TextInput/>
    </mx:FormItem>
</mx:ViewStack>
0

精彩评论

暂无评论...
验证码 换一张
取 消