当前位置: 代码迷 >> Web前端 >> ComboBox范例
  详细解决方案

ComboBox范例

热度:177   发布时间:2012-11-17 11:14:15.0
ComboBox实例
<s:ComboBox>
	<s:dataProvider>
		<s:ArrayCollection>
			<fx:Object label="全部" data="all"/>
			<fx:Object label="男" data="M"/>
			<fx:Object label="女" data="F"/>
		</s:ArrayCollection>
	</s:dataProvider>
</s:ComboBox>


<s:ComboBox labelField="title">
	<s:dataProvider>
		<s:ArrayCollection>
			<fx:Object title="全部" data="all"/>
			<fx:Object title="男" data="M"/>
			<fx:Object title="女" data="F"/>
		</s:ArrayCollection>
	</s:dataProvider>
</s:ComboBox>


<fx:Declarations>
	<s:ArrayCollection id="comboData">
		<fx:Object label="全部" data="all"/>
		<fx:Object label="男" data="M"/>
		<fx:Object label="女" data="F"/>
	</s:ArrayCollection>
</fx:Declarations>
<s:ComboBox dataProvider="{comboData}"/>
  相关解决方案