Ext xtype : "combo" 下拉选择框

来源:互联网 发布:贵州省精准扶贫软件 编辑:程序博客网 时间:2024/06/05 06:34

建表的时候 有很多输入框 有的需要下拉选择 这时候用 xtype : "combo" 会很方便  下面把cmmbo 下拉代码贴下面 供大家参考


new Ext.form.Label({
text : "水果选择:"  
}), {
xtype : "combo",
store : new Ext.data.ArrayStore({
fields : [ 'value', 'text' ],
data : [ [ "1", '香蕉' ], [ "2", '苹果' ] ]
}),
width : 90,
},


1 0
原创粉丝点击