zoukankan      html  css  js  c++  java
  • EXTJS formpanel例子

      子界面,整体的FROM下窗体window调用另一个小form

    Ext.QuickTips.init();//开启表单提示
            Ext.form.Field.prototype.msgTarget = 'side';//设置提示信息位置为边上

                var simple = new Ext.FormPanel({//初始化表单面板       
     
              id:'REG_FORM1',

                    labelWidth: 80,  // 默认标签宽度板 
    //                baseCls: 'x-plain',//不设置该值,表单将保持原样,设置后表单与窗体完全融合 

     layout:'form',

                      
                       
                      items : [{
                            fieldLabel: 'ID',
                            xtype : "textfield",
                            blankText:'企业ID不能为空',
                            allowBlank : false, // 验证字段是否能为空
                            id: 'EntID'
    ////                     
    //                        value:rows[0].get("ID") ,
    //                        readOnly:true
                        }]

     ,buttons: [{
                        text: '注册',
               type: 'submit',
               tooltip: '点击这个按钮注册',
                  
               handler: regUser
                    },{
                        text: 'Cancel'
                        ,handler  : function(){win1.close();}
                    }]

    var win1 = new Ext.Window({
                                                title    : 'Window',
                                                modal:true,
                                                closable : true,
                                                width    : 360,
                                                height   : 360,
                                                plain    : true
                                                ,items    : simple
                                                 });
                                            win1.show();

  • 相关阅读:
    HDU 4901 The Romantic Hero
    COGS8 备用交换机
    POJ 1466 Girls and Boys
    bzoj3442 学习小组
    bzoj2054 疯狂的馒头
    POJ2135 Farm Tour
    POJ 1149 PIGS
    Html5 Canvas学习之路(五)
    关于跨域简单总结
    vue-baidu-map 进入页面自动定位的解决方案!
  • 原文地址:https://www.cnblogs.com/zzh1236/p/1419772.html
Copyright © 2011-2022 走看看