EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: digo on June 14, 2013, 06:35:40 AM



Title: Set panel title of a collapsed panel
Post by: digo 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


Title: Re: Set panel title of a collapsed panel
Post by: stworthy 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');


Title: Re: Set panel title of a collapsed panel
Post by: digo on June 14, 2013, 08:05:43 AM
Thanks! Works fine!

Digo