FLEX/SELECTBOX
2013-11-22 12:57
134 查看
下拉菜单赋值
[Bindable]
private var subjectDataProvider:ArrayCollection = new ArrayCollection([
{label:"Standard",data:1},
{label:"Clock",data:2}
])
<mx:HBox width="100%" height="100%">
<mx:ComboBox id="subject" width="150" labelField="label" dataProvider="{subjectDataProvider}" prompt="" />
</mx:HBox>
取出ArrayCollection中某字段的值
tempList = httpData.getDataToArrayCollection("TEMP_LIST");
save_interval.text = tempList[0]["save_interval"]; //第一行的save_interval字段的值
下拉菜单根据指定的值被选中
subject.selectedIndex = 1;
[Bindable]
private var subjectDataProvider:ArrayCollection = new ArrayCollection([
{label:"Standard",data:1},
{label:"Clock",data:2}
])
<mx:HBox width="100%" height="100%">
<mx:ComboBox id="subject" width="150" labelField="label" dataProvider="{subjectDataProvider}" prompt="" />
</mx:HBox>
取出ArrayCollection中某字段的值
tempList = httpData.getDataToArrayCollection("TEMP_LIST");
save_interval.text = tempList[0]["save_interval"]; //第一行的save_interval字段的值
下拉菜单根据指定的值被选中
subject.selectedIndex = 1;
相关文章推荐
- CSS的未来:游戏的变革Flexbox
- [Wondgirl]从零开始学React Native之FlexBox布局(三)
- box-flex等分总结
- IE10中的Flexible Box("Flexbox")布局
- CSS3支持box-flex弹性布局
- PAIP.自定义SELECT BOX COMMBO BOX展现.txt
- React Native-4.React Native布局属性练习之flexBox模型实战
- Android可伸缩布局-FlexboxLayout(支持RecyclerView集成)
- IFE-TASK10(任务十:Flexbox 布局练习)
- [Flexbox] Using order to rearrange flexbox children
- css3弹性盒子模型 flex与box 菜鸟学习笔记
- Google开源的FlexboxLayout
- Android开发之玩转FlexboxLayout布局
- flex TitleBox
- CSS3弹性盒模型之box-flex
- CSS弹性盒模型 box-flex
- flex和box兼容性写法
- Check Box Select/Deselect All on Grid
- Google 开源的 Android 排版库:FlexboxLayout
- Android可伸缩布局-FlexboxLayout(支持RecyclerView集成)