zoukankan      html  css  js  c++  java
  • Ext Window更新Items【原】

    Ext-Code var infowin = detailsInfowin = null;
       function Info(e,info){
          var html = '栅格编号:'+info.Body[0].MI_NAME+'<br/>基站数:'+info.Body[0].BASESTATION+'<br/>小区数:'+info.Body[0].CICOUNT
                      +'<br/>区域话务量:'+info.Body[0].ZONETELTRAFFIC;
          if(infowin===null){
          infowin = new Ext.Window({
               id:'winInfo',
               title:'栅格信息',
               height:143,
               200,
               plain:true,
               bodyStyle:'padding:5px',
               animateTarget:e,
               tbar: ['->',new Ext.Button({ text: '查看详细信息', iconCls: 'modify' })],
               items:{
                layout:'table',
                html:html
               },
               listeners:{
                beforeclose:function(){
                    infowin = null;
                }
               }
           });
           }else{
             infowin.removeAll();     
             infowin.add({
                layout:'table',
                html:html
             });
            infowin.doLayout(); //重新计算容器的布局尺寸。当有新组件加入到已渲染容器或改变子组件的大小/位置之后,就需要执行此函数重新计算容器的布局尺寸。当有新组件加入到已渲染容器或改变子组件的大小/位置之后,就需要执行此函数    

      }
         infowin.show(e);
       }

  • 相关阅读:
    linux 定时脚本任务的创建
    win10 Edge 无法上网代理服务器错误
    CentOS 7 系统root用户忘记密码的重置方法
    通过挂载系统光盘搭建本地yum仓库的方法
    Oauth服务端协议开发
    mongodb 用户权限控制
    javascript 数组方法拼接html标签
    存储管理与linux内存寻址(1)
    原型模式
    背包,队列,栈的java实现
  • 原文地址:https://www.cnblogs.com/myssh/p/1647770.html
Copyright © 2011-2022 走看看