Touch the future...

ComboBox

上一篇 / 下一篇  2008-04-02 09:26:27 / 个人分类:Ext Javascript Library

   // simple data source

   varstore2 =newExt.data.SimpleStore({

       fields : ['name','age'],

       data : [['赵本山', 22], ['井冈山', 28], ['何文', 88], ['注兴', 68]]

   });

 

   // simple combobox test

   varsimpleComboBox =newExt.form.ComboBox({

       store : store2,//数据源

       displayField :'age',//数据显示列名

       mode :'local',//默认以'remote'作为数据源

       triggerAction :'all',//单击下拉按钮时激发事件

       typeAhead :true,//自动完成功能

       // forceSelection: true, //用户不能添加新项,默认为false

       selectOnFocus :true,

       emptyText :'select a state ...',

       applyTo :'simpleComboBox'//请注意此项设置显示下拉列表的控件(<input type="text" ...

                                   // />)

   });

 

   varsimplePanel =newExt.Panel({

       contentEl :'simplePanelCode',//面板内容

       renderTo :'simplePanel',//呈现的目标控件

       title :'simple panel',//面板标题

       width : Ext.getBody().child('p').getWidth(),//面板宽度

       collapsed :true,

       titleCollapse :true,

       hideCollapseTool :false,

       collapsible :true

   });


相关阅读:

TAG: ext combobox panel simplestore

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2012-05-22  
  12345
6789101112
13141516171819
20212223242526
2728293031  

数据统计

  • 访问量: 4985
  • 日志数: 25
  • 文件数: 1
  • 书签数: 18
  • 建立时间: 2008-01-08
  • 更新时间: 2008-09-11

RSS订阅

Open Toolbar