EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
July 19, 2025, 07:17:35 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
panel: title alignment
Pages: [
1
]
« previous
next »
Print
Author
Topic: panel: title alignment (Read 8672 times)
korenanzo
Guest
panel: title alignment
«
on:
May 03, 2017, 12:53:32 AM »
Hi ,
I need to modifiy the
panel title alignment (left-center-right) ;
I've tried adding "text-align:rught" to the div containing the title but it superimposes the toolbox icons (panel-tool)
Any suggestion?
Thanks,
RIc
Logged
jarry
Administrator
Hero Member
Posts: 2294
Re: panel: title alignment
«
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
Re: panel: title alignment
«
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
Re: panel: title alignment
«
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
Re: panel: title alignment
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...