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,会显示在左上角。

  • 相关阅读:
    青城的另一个一夜/情
    SystemProperties.get/set property_get/set
    锁——Java同步的基本思想
    CMUSphinx Learn
    猜数字
    我的音乐我的电影
    动态规划_钢条切割问题
    directdraw显示yuv420(YV12)
    Redis 命令参考
    HDU 3078 LCA转RMQ
  • 原文地址:https://www.cnblogs.com/ahguSH/p/5052168.html
Copyright © 2011-2022 走看看