Hi,
you need to configure uiProviders on the loader or the tree. See
http://geoext.org/lib/GeoExt/widgets/tree/LayerLoader.html and
http://www.extjs.com/deploy/dev/docs/?class=Ext.tree.TreeLoader
Regards,
Andreas.
On May 5, 2010, at 18:44 , Florent Gravin wrote:
> 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
> _______________________________________________
> Users mailing list
> [email protected]
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users