Hello all,

I'm trying to change the default ExtJS icons of tree nodes that are inside a
container but, until the moment, with no success. So, i have a
GeoExt.tree.LayerContainer with 3 layers. I'm able to change the parent node
icon through the config option iconCls. However, this is not working with
the child nodes od this layer container. I've tried the following:

//my container
var baseStreetCont = new GeoExt.tree.BaseLayerContainer({
      text: 'Arruamentos',
      layerStore: baseLayerStore,
      expanded: true,
      allowDrop: false
});

baseStreetCont.eachChild(function(node){
     node.attributes.iconCls = 'raster';
});

I've also tried:

var treePanel (my tree panel configurations)

treePanel.getLoader().on('beforeload', function(loader, node){
       node.eachChild(function(node){
            node.attributes.iconCls = 'raster';
       }, loader);
});

Any suggestions?
Thanks,
Hugo

-- 
Hugo Martins
LabNT - ISEGI UNL
Campus de Campolide
1070-312 Lisboa
N 38°43'56.84", W 9°9'35.74"
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to