zoukankan      html  css  js  c++  java
  • easyUI中Window Dialog的配置

    1. Dialog 的配置参数是扩展于Window

    Extend from $.fn.window.defaults. Override defaults with $.fn.dialog.defaults.
    2. Window的配置参数是扩展于Panel

    Extend from $.fn.panel.defaults. Override defaults with $.fn.window.defaults.
    3. Panel 的配置参数可以传入覆盖默认
    Override defaults with $.fn.panel.defaults.
    4. Panel 可以指定位置参数有两个

    Name Type Description Default

    left 
    number 
    Set the panel left position. 
    null 

    top 
    number 
    Set the panel top position. 
    null 

    5. 配置dialog

    $('#dom_div').dialog({
    title: 'My Dialog',  //dialog标题
    left:0,          //配置距离左侧的距离、默认单位为px
    top:0,    //配置距离页面上侧的距离、默认单位为px
    400,  //dialog的宽
    height: 200,  //dialog的长
    closed: false,    
    cache: false,     
    href: 'get_content.php',
    modal: true,   //dialog是否启动模态
    });

    以上设置了left和top为0,会显示在左上角。

  • 相关阅读:
    网络和笔记本
    病毒惹的祸
    Virtual MachineVmware(2)
    VS2010 工具箱装载出错
    Virtual Machine VmWare(1)
    javascript写计数器
    代码自动生成操作
    用live writer写博客
    上海招聘.net程序员
    将用户导入到membership
  • 原文地址:https://www.cnblogs.com/ahguSH/p/5052168.html
Copyright © 2011-2022 走看看