我想使用下面的fieldContainer是我的代码..
Ext.onReady(function () {
Ext.QuickTips.init();
var myViewport = new Ext.Viewport({
layout: 'border',
border: false,
renderTo: Ext.getBody(),
items: [{
region: 'north',
xtype: 'panel',
id: 'north-panel',
border: false,
height: 125
}, {
region: 'center',
xtype: 'panel',
id: 'center-panel',
border: false,
items: [{
xtype: 'fieldcontainer',
fieldLabel: 'Time worked',
combineErrors: false,
layout: 'hbox',
defaults: {
flex: 1,
hideLabel: true
},
items: [{
name: 'hours',
xtype: 'textfield',
width: 48,
allowBlank: false
}, {
name: 'minutes',
xtype: 'button',
width: 10,
text: 'add'
}]
}]
}]
});
});
Run Code Online (Sandbox Code Playgroud)
现在,当我运行此代码时,我无法看到文本字段或按钮.
请告诉我解决方案.
| 归档时间: |
|
| 查看次数: |
4912 次 |
| 最近记录: |