EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 21, 2024, 07:14:10 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
>
General Discussion
>
How to change the panel title?
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to change the panel title? (Read 6402 times)
szsupernan
Newbie
Posts: 2
How to change the panel title?
«
on:
May 07, 2018, 09:10:53 PM »
hi guys,
There are two ways to change the title of panel control.
1)
$("#aaa").panel('setTitle', 'new title');
2)
$("#aaa").panel({title: 'new title'}).
are there any differences? I prefer 2, but is the 1 correct way?
Thanks
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: How to change the panel title?
«
Reply #1 on:
May 07, 2018, 11:27:13 PM »
The first one only change the panel's title. The second one recreate the whole panel with a different title. If you only want to change the panel's title, please call 'setTitle' method instead.
Logged
szsupernan
Newbie
Posts: 2
Re: How to change the panel title?
«
Reply #2 on:
May 10, 2018, 11:50:11 PM »
Quote from: stworthy on May 07, 2018, 11:27:13 PM
The first one only change the panel's title. The second one recreate the whole panel with a different title. If you only want to change the panel's title, please call 'setTitle' method instead.
good answer, thank you very much.
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...