EasyUI Forum
June 26, 2024, 12:40:41 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Panel settings in the portal  (Read 2535 times)
officecode
Jr. Member
**
Posts: 69


View Profile Email
« on: March 11, 2019, 09:23:21 PM »

The page code is as follows:
Code:
<div id="first" class="easyui-portal"...>
<div style="width:70%">
<div id="bts" ...></div>
<div id="sales" ...></div>
</div>
<div style="width:30%">
<div id="msg" ...></div>
<div id="log" ...></div>
</div>
</div>

Now I want to add an action button to the ‘bts’ panel:
Code:
$('#bts').panel({
tools:[{
iconCls:'icon-tools',
                ...
        }]
})

The button works fine. However, the panel cannot be dragged. Where is my problem? Please help, thank you!
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 11, 2019, 10:47:21 PM »

Please use this code instead.
Code:
<div id="bts" title="Panel" data-options="
tools:[{
iconCls: 'icon-add'
}]
">
<p>Panel Content.</p>
</div>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!