[Users] WG: How to programmatically change the gx_overlayrcontainers text string in the tree:SOLVED

truongxuan quang truongxuanquang at yahoo.com
Fri Mar 16 10:50:37 CET 2012


Hi
I think it should be 

var treeConfig1 =[
{
nodeType: "gx_baselayercontainer",
text: "Base Layers",
expanded: true,
leaf: false,
loader: {
param: "LAYERS"
}
},
{ 
text: "Search Functionality",
expanded: false,
children: [
        {
             nodeType: 'gx_layer',
     text: 'List of Station',
             layer: Layer_Station,
               icon: '../images/draw_polygon.png',
 qtip: "Map of Stations"
         },
.............etc
 ]
},
{ 
text: "Map",
expanded: false,
children: [ etc.....




________________________________
 From: Robert Buckley <robertdbuckley at yahoo.com>
To: "users at geoext.org" <users at geoext.org> 
Sent: Friday, March 16, 2012 10:08 AM
Subject: [Users] WG: How to programmatically change the gx_overlayrcontainers text string in the tree:SOLVED
 



Betreff: Re: [Users] How to programmatically change the gx_overlayrcontainers text string in the tree:SOLVED
 

It was a stupid question....I just had to use 

text: "string"

...in the layer config

yours,
Rob




________________________________
 Von: Robert Buckley <robertdbuckley at yahoo.com>
An: "users at geoext.org" <users at geoext.org> 
Gesendet: 14:30 Donnerstag, 15.März 2012
Betreff: [Users] How to programmatically change the gx_overlayrcontainers text string in the tree
 

I´ver tried this...


var treeConfig = [{
        nodeType: "gx_baselayercontainer",
        id: "gx_baselayercontainer",
        hidden:true
    }, {....etc.etc

Ext.get('gx_baselayercontainer').set({text: 'test'}); 


This doesn´t work....cannot call method 'set' of null???

how can I set the text then?


yours with thanks,

Rob






_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users





_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20120316/8a5e9576/attachment.htm 


More information about the Users mailing list