Easyui02-dialog

静态方式添加

<div id="dd" class="easyui-dialog" title="My Dialog" style="width:400px;height:200px;"   
        data-options="iconCls:'icon-add',resizable:true,modal:true">   
         Dialog Content.    

 </div>

通过js方式添加

<div id="dd">Dialog Content.</div>

在js方法中添加属性

$(function(){
$("#dd").dialog({
width:400,
height:300,
modal:false,
iconCls:"icon-man",
title:"新增面板",

content:"增加页面详情",

                        toolbar:[

         {
        text:'编辑',
iconCls:'icon-edit',
handler:function(){alert('edit')}
         },
         {
        text:"删除",
        iconCls:"icon-remove",
        handler:function(){alert("remove")}
         },
         {
        text:"帮助",
        iconCls:"icon-help",
        handler:function(){alert("help")}
         }
      ]
})
})

猜你喜欢

转载自blog.csdn.net/sinat_29211659/article/details/80865423
今日推荐