View Full Version : Layout Collapsed Title Image change
rizakoyt
4 Nov 2006, 10:08 PM
I set the title image on the collapsed west panel in my layout using the css. It works well. Is there a quick way to change the image to another title?
Thanks
jack.slocum
5 Nov 2006, 3:44 AM
You can define another class in your css:
.other-bg{
background-image: url(foo.gif);
}
Then call:
layout.getRegion('west').collapsedEl.addClass('other-bg');
Or you can embed the image name in your JS (not recommended):
layout.getRegion('west').collapsedEl.setStyle('background-image', 'url(foo.gif)');
rizakoyt
5 Nov 2006, 7:34 AM
Thanks Jack. Works like a charm.
pomata
12 Dec 2006, 7:12 AM
maybe a stupid question, isn“t it possible to set a text title on collapsed... at least the south panel....
ta
Pomata
jack.slocum
12 Dec 2006, 7:17 AM
It's all about the collapsedEl. It is a standard YAHOO.ext.Element and you can modify it like any other element.
layout.getRegion('west').collapsedEl.update('Some text');
layout.getRegion('west').collapsedEl.dom.title = 'Some tooltip';
pomata
12 Dec 2006, 7:20 AM
Thanks Jack, prompt response.
keep up the good work.
Regards
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.