码迷,mamicode.com
首页 > 其他好文 > 详细

easyui---基础组件:dialog

时间:2018-10-25 11:03:56      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:head   image   就是   function   window   hand   alt   rip   content   

  • 依赖下面两个组件
  • window
  • linkbutton

linbutton组件:就是超链接变成按钮

技术分享图片

 


$(function(){ $(
"#linkbuttonid").linkbutton({ text:"dianji", iconCls:"icon-save" }) }) </script> </head> <body> <div id="windowid" ></div> <!-- <input type="button" value="点击"/> --> <a id="linkbuttonid" ></a>

点击按钮打开窗口

<script>
$(function(){
    $("#linkbuttonid").click(function(){
        $("#windowid").window("open");
    });
})

</script>
</head>
<body>
<div id="windowid" closed=true class="easyui-window" style="width:500px;height:300px;"></div>
<a id="linkbuttonid" class="easyui-linkbutton">点击</a>
</body>

调用方法:直接方法名,和事件不同,事件需要配置 事件名:function(){}

$("#windowid").window("open");

  <div id="dd" title="My Dialog" style="width:400px;height:200px;">  

     Dialog Content.   

  </div>  


 $(#dd).dialog({   

    modal:true  

 });  

 

$(function(){
    $("#dialogid").dialog({        
        width:500,   
           height:150,   
          title: My Panel,
          content:"aaaa",
          iconCls:"icon-edit",
        
          toolbar:[
                 {
                     text:"新增",
                     iconCls:"icon-add",
                     handler:function(){alert();}}
                 ]
    
        
    })
})

技术分享图片

 

 技术分享图片技术分享图片

 

easyui---基础组件:dialog

标签:head   image   就是   function   window   hand   alt   rip   content   

原文地址:https://www.cnblogs.com/fpcbk/p/9847616.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!