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();

  • 相关阅读:
    WEB 应用缓存解析以及使用 Redis 实现分布式缓存
    MVC 架构模式
    用两个栈实现队列
    重建二叉树
    从尾到头打印链表
    替换空格
    二维数组中的查找
    二叉树与线索二叉树
    OpenYurt:延伸原生 Kubernetes 到边缘场景下的落地实践
    开放下载!解锁 Serverless 从入门到实战大“橙”就
  • 原文地址:https://www.cnblogs.com/zzh1236/p/1419772.html
Copyright © 2011-2022 走看看