ext3.0

66 阅读1分钟
  • formPanel

    • 获取form数据
    formPanel.getForm().getValues()
    
    • 设置表单数据
    var record = new Ext.data.Record({
        key: value
    })
    formPanel.loadRecord(record);
    
    • form表单结构
     new Ext.Window({
         title: '手机绑定',
         width: 290,
         height: 190,
         modal: true,
         resizable: false,
         closable: false,
         closeAction: 'hide',
         phoneEditType: '',
         items: [{
             xtype: 'form',
             id: 'phoneBindingForm',
             height: 121,
             layout: 'form',
             bodyStyle: 'padding-top:20px',
             frame: true,
             items: [
                 {
                     layout: 'column',
                     border: false,
                     items: [
                         {
                             columnWidth: .85,
                             layout: 'form',
                             labelWidth: 80,
                             labelAlign: 'right',
                             items: {
                                 xtype: 'textfield',
                             }
                           }]
                    }]
                   }]
     )}