EasyUI Forum
July 19, 2025, 07:17:35 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: title alignment  (Read 8672 times)
korenanzo
Guest
« on: May 03, 2017, 12:53:32 AM »

Hi ,

I need to modifiy the   
panel title alignment (left-center-right) ;  Smiley

I've tried adding "text-align:rught"  to the div containing the title but it superimposes the toolbox icons (panel-tool) Huh

Any suggestion?

Thanks,
RIc
Logged
jarry
Administrator
Hero Member
*****
Posts: 2294


View Profile Email
« Reply #1 on: May 03, 2017, 05:37:41 AM »

Please add the 'padding-right' style.
Code:
.panel-title{
text-align: right;
padding-right: 80px;
}
Logged
jega
Full Member
***
Posts: 223


View Profile
« Reply #2 on: March 04, 2025, 10:04:36 AM »

Hi Jarry

And if we want to have a text left align and another text right in same panel title ??

Logged
jarry
Administrator
Hero Member
*****
Posts: 2294


View Profile Email
« Reply #3 on: March 07, 2025, 01:25:58 AM »

The header of panel can be customized. Please try this code.
Code:
const header = `<div class="f-row"><div class="panel-title f-full">Title</div><div>Right</div></div>`;
$('#p').panel('header').html(header)
Logged
jega
Full Member
***
Posts: 223


View Profile
« Reply #4 on: March 07, 2025, 06:04:35 AM »

Hi jarry.

So far so good

Text "right" is on next line, it should be on same line

const header = '<div class="f-row"><div class="panel-title f-full">Title</div><div>Right</div></div>';

$('#vagtPanel_'+index1).panel({
   header: header
});
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!