easyui---panel(面板)

panel笔记:

      

EASYUI

panel:
class:easyui-panel,带有title
打开:οnclick="javascript:$('#c').panel('open')"
关闭:οnclick="javascript:$('#c').panel('close')"
展开:οnclick="javascript:$('#panel').panel('expand',true)"
折叠:οnclick="javascript:$('#panel').panel('collapse',true)"
页脚:data-options="footer:'#footer'"//将id为footer的容器作为页脚

关闭(右上角小工具):data-options="closable:true"
折叠展开(右上角小工具):collapsible:true
类似局部刷新(右上角小工具):data-options="
tools:[{
iconCls:'icon-reload',
handler:function(){
$('#p').panel('refresh', '_content.html');//#p为被刷新的容器,_content.html代表的是将那个页面内容加进来
}
}]
布局(放置在panel内部):
<div class="easyui-layout" data-options="fit:true">
  <div data-options="region:'west',split:true" style="width:100px;padding:10px">
    Left Content
  </div>
  <div data-options="region:'east'" style="width:100px;padding:10px">
    Right Content
  </div>
  <div data-options="region:'center'" style="padding:10px">
    Center Content
  </div>
</div>

 

 

 

 

 

1.连接好easyui

 

2.开始

<div class="easyui-panel" style="width: 100%;height:650px;">
<a href="#" class="easyui-linkbutton" οnclick="javascript:$('#panel').panel('open')">打开事件</a>
<a href="#" class="easyui-linkbutton" οnclick="javascript:$('#panel').panel('close')">关闭事件</a>
<a href="javascript:void(0)" class="easyui-linkbutton" οnclick="javascript:$('#panel').panel('expand',true)">展开</a>
<a href="javascript:void(0)" class="easyui-linkbutton" οnclick="javascript:$('#panel').panel('collapse',true)">折叠</a>
<div id="panel" style="width:700px;height:200px;padding:10px;" class="easyui-panel"

data-options="closable:true,collapsible:true,minimizable:true,maximizable:true,footer:'#footer',

tools:[{

iconCls:'icon-reload',

handler:function(){

  $('#panel').panel('refresh', '_content.html');
}
}]" title="这是一个panel">
  <div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'west',split:true" style="width:100px;padding:10px">
      Left Content
    </div>
    <div data-options="region:'east'" style="width:100px;padding:10px">
      Right Content
    </div>
    <div data-options="region:'center'" style="padding:10px">
      Center Content
    </div>
    </div>
    <div id="footer" style="padding:5px;">主意这是一个页脚</div>
  </div>
</div>

 

3.效果图

    

 

转载于:https://www.cnblogs.com/lbonet/p/6518339.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值