您好,
在.layout-button-left上添加一个单击事件
参考代码:- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <!-- jquery -->
- <script src="jquery.min.js"></script>
- <!-- easyui -->
- <link rel="stylesheet" href="themes/default/easyui.css" type="text/css" />
- <link rel="stylesheet" href="themes/icon.css" type="text/css" />
- <link href="demo/demo.css" rel="stylesheet" />
- <script src="jquery.easyui.min.js"></script>
- <!-- spread -->
- <link href="jquery.wijmo.wijspread.3.20151.16.css" rel="stylesheet" />
- <script src="jquery.wijmo.wijspread.all.3.20151.16.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function () {
- var ss = $("#ss");
- ss.wijspread();
-
- $(".layout-button-left").click(function(){
- var spread = $("#ss").data("spread");
- spread.refresh();
- });
- });
- function resize()
- {
- }
- </script>
- <title></title>
- </head>
- <body class="easyui-layout" id="bodylay">
- <div data-options="region:'west',split:true" title="单位组织结构" style="width:186px; height:100%;
- overflow:hidden; " border="true" style="border:2px solid; border-color: rgb(9,145,208)">
- </div>
- <div id="centerlay" data-options="region:'center',onResize: resize" style="font-size: 20px; position: relative; ">
- <div id="ss" style="border: solid gray 1px; overflow: hidden; box-sizing: border-box; height: 99%;">
- </div>
- </div>
- </body>
- </html>
复制代码 |