EXT 布局中缩短label与field之间距离的方法

主要是采用一个插件 FieldLabeler 在ext-3.3.1\examples\ux路径下。

[align=left]var templatePanel = new Ext.Panel({
region: 'north',
height: 40,
width: 600,
bodyStyle: 'padding:8px 0px',
labelWidth: 55,
layout: {
type: 'hbox',
pack: 'center'
},
defaults: {
xtype: 'textfield'
},
items:[{
fieldLabel: '模板名称',
plugins: [Ext.ux.FieldLabeler],
name: 'name'
},{
xtype: 'combo',
width: 150,
ieldLabel: '模板类型',
plugins: [Ext.ux.FieldLabeler],
editable: false,
forceSelection:true,
store: new Ext.data.SimpleStore({
fields: ["value","status"],
data: [["0","直播频道"],["1","虚拟频道"]]
}),
mode: "local",
triggerAction: "all",
displayField : "status",
valueField: "value",
hiddenName : "type",
name: "type",
allowBlank: false
},{
fieldLabel:"备注",
plugins: [Ext.ux.FieldLabeler],
name: "description"
}]
});[/align]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值