EasyUI Forum
May 17, 2024, 12:36:24 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Set panel title of a collapsed panel  (Read 8490 times)
digo
Newbie
*
Posts: 26


View Profile
« on: June 14, 2013, 06:35:40 AM »

Hi!

I would like to set the title of a collapsed panel.
I tried:

Code:
$('#MyHeaderPanelID').panel('setTitle', 'MyTestHeader');

but div of the collapsed panel is still " ".

Code:
<div class="panel-title"> </div>

It´s no problem to set this text using Firebug.

Code:
<div class="panel-title">MyTestHeader</div>

Thanks!
Digo
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: June 14, 2013, 07:55:58 AM »

From your attached image we suggest that you are setting title of the collapsed north panel. If so, try the code below:
Code:
var p = $('body').layout('panel','expandNorth');
p.panel('setTitle', 'MyTestHeader');
Logged
digo
Newbie
*
Posts: 26


View Profile
« Reply #2 on: June 14, 2013, 08:05:43 AM »

Thanks! Works fine!

Digo
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!