[Users] layerNode UI
Florent Gravin
florent.gravin at gmail.com
Wed May 5 18:44:06 CEST 2010
Hi,
I try to custom the NodeUI of my layerTreePanel...
I have a subclass :
MyNs.LayerNodeUI = Ext.extend(GeoExt.tree.LayerNodeUI
But i can't find the way to affect this UI to the Node..
The point is the line :
this.defaultUI = this.defaultUI || GeoExt.tree.LayerNodeUI in the constructor of GeoExt.tree.TreeNode,
i would like to have MyNs.LayerNodeUI in this.defaultUI but couldn't fix the thing..
this is how i instanciate my Tree :
this.root = new GeoExt.tree.OverlayLayerContainer({
layerStore: this.mapPanel.layers,
leaf: false,
expanded: true,
cls: 'layerTree',
});
i tried things like this :
default: {
uiProvider: MyNs.TreeNode,
ui: MyNs.TreeNode,
defaultUI: MyNs.TreeNode
}
but those arguments are'nt passed on the call of createNode()
do you have any idea ?
thks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100505/5a70e950/attachment.htm
More information about the Users
mailing list