码迷,mamicode.com
首页 > Web开发 > 详细

extjs 4.0 combobox 下拉文本显示自动变宽

时间:2014-11-24 15:13:42      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   sp   div   log   bs   ef   as   


1
items: { 2 xtype: ‘combobox‘, 3 displayField: ‘name‘, 4 labelAlign: ‘right‘, 5 valueField: ‘num‘, 6 matchFieldWidth:false,//默认是true,改成false下拉内容就自动变宽显示在一行了 7 value: ‘all‘, 8 queryMode: ‘local‘, 9 store: 10 new Ext.data.Store({ 11 fields: [‘name‘, ‘num‘], 12 data: [{ ‘name‘: ‘11111111111111111111‘, ‘num‘: ‘all‘ }, 13 { ‘name‘: ‘2222222222222222222222‘, ‘num‘: ‘10‘ }, 14 { ‘name‘: ‘3333‘, ‘num‘: ‘0‘ }, 15 { ‘name‘: ‘444‘, ‘num‘: ‘-10‘ }] 16 }), 17 }

 

extjs 4.0 combobox 下拉文本显示自动变宽

标签:style   blog   color   sp   div   log   bs   ef   as   

原文地址:http://www.cnblogs.com/lanzhu/p/4118523.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!