EasyUI Forum
September 14, 2025, 08:10:28 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 header height  (Read 12354 times)
jaimi
Full Member
***
Posts: 121


View Profile
« on: February 23, 2015, 01:18:49 AM »

Hi, I tried to put a menu within the panel's toolbar. But the bar is to small.
How to expand the height of the panel's toolbar?
THX, Jaimi
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: February 23, 2015, 10:36:23 AM »

Please override the '.panel-tool' CSS style.
Code:
<style>
.panel-title{
height:26px;
line-height: 26px;
}
.panel-tool{
height: 26px;
margin-top:-13px;
}
</style>

Another way to solve this issue is to download the newest 'panel' plugin from http://www.jeasyui.com/easyui/plugins/jquery.panel.js. You will be able to custom your panel's header.
Code:
<div class="easyui-panel" style="width:700px;height:300px">
<header>
<div class="m-toolbar">
<div class="m-title">Panel Header</div>
</div>
</header>
<footer>
<div class="m-toolbar">
<div class="m-title">Panel Footer</div>
</div>
</footer>
</div>
Logged
jaimi
Full Member
***
Posts: 121


View Profile
« Reply #2 on: February 23, 2015, 10:49:24 PM »

thx, is there a tutorial to use the plugin?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: February 24, 2015, 01:46:40 AM »

Please refer to this documentation http://www.jeasyui.com/documentation/panel.php. The 'header' property will be available since version 1.4.2.
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!