0

I would like to hide/remove the checkbox of a LayerNode, since I need to have it always on display.

Is there any sort of option to do this, or must I use the Ext object hierarchy to locate the checkbox object and remove it?

1

Here is a way of doing it, not very elegant, but it is a single line of code:

treeNode.getUI().checkbox.hidden = true;

Where treeNode is an object of the type GeoExt.tree.LayerNode.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.