Flex Gumbo中DropDownList/ComboBox如何使用的例子

By Minidxer | July 23, 2009

接下来的例子演示了Flex Gumbo中如何利用DropDownList/ComboBox先是一列Options。

让我们先来看一下Demo可以点击这里察看源代码):


下面是完整代码(或点击这里察看):

Download: main.mxml
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <s:Application name="DropDownList_test"
  3.         xmlns:fx="http://ns.adobe.com/mxml/2009"
  4.         xmlns:s="library://ns.adobe.com/flex/spark"
  5.         xmlns:mx="library://ns.adobe.com/flex/halo">
  6.     <s:layout>
  7.         <s:BasicLayout />
  8.     </s:layout>
  9.  
  10.     <s:DropDownList id="comboBox"
  11.             horizontalCenter="0"
  12.             top="20">
  13.         <s:dataProvider>
  14.             <s:ArrayList source="[The,quick,brown,fox,jumps,over,the,lazy,dog]" />
  15.         </s:dataProvider>
  16.     </s:DropDownList>
  17.  
  18. </s:Application>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子

Topics: ComboBox, DropDownList, Gumbo | No Comments » | Tags: ,

Search Posts