日期:2014-05-16 浏览次数:20616 次
var formT = this.up('form').query('textfield');
Ext.Array.forEach(formT, function(field) {
然后在这里对获得到的那个textfield控件进行可用设置
}
Ext.onReady(function(){
var formPanel;
formPanel = Ext.widget('form', {
renderTo: Ext.getBody(),
title: 'Complete Check Out',
frame: true,
width: 550,
bodyPadding: 5,
fieldDefaults: {
labelAlign: 'right',
labelWidth: 90,
msgTarget: 'qtip'
},
items: [
// Billing Address
{
xtype: 'fieldset',
title: 'Billing Address',
layout: 'anchor',
defaults: {
anchor: '100%'
},
items: [{
xtype: 'checkbox',