EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Pierre on October 03, 2013, 02:27:34 PM



Title: How to change layout title?
Post by: Pierre on October 03, 2013, 02:27:34 PM
Hi all
I have west region and I need to change the title.
Here is what I use but it does not work:

  var c = $('#index-layout');            // layout itself
  var w = c1.layout('panel','west');   // west panel
  // I try this, but it does not worked:
  w.title = 'New title';
  // or this
  w.title('New title');


Thanks!


Title: Re: How to change layout title?
Post by: stworthy on October 04, 2013, 04:58:47 AM
The 'setTitle' method of panel is available to change the panel's title.
Code:
var c = $('#index-layout');            // layout itself
var w = c.layout('panel','west');   // west panel
w.panel('setTitle','New Title');


Title: Re: How to change layout title?
Post by: Pierre on October 04, 2013, 05:21:19 AM
Thanks man, it works perfect.