[Users] How to change icon of a tree node inside a container
Hugo
hfpmartins at gmail.com
Thu Feb 17 12:34:27 CET 2011
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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110217/34fe2b13/attachment.htm
More information about the Users
mailing list