Note : this widget use MapFish-client javascript library, which is deprecated. You can use the GeoExtUX_LayerTreeBuilder widget instead.
Please note that this demo uses the following deprecated widget(s) : map, mapfishlayertree.
This demo demonstrate the use of the MapFishLayerTree widget. Each node has to be defined separately. You can define if you want a checkbox for a node when defining the node 'checked' option (see widget doc).
It also demonstrate how to use 'layer param nodes' to toggle layers properties inside a single WMS layer.
Finally, it also shows that a layer node can have 'minScale' and 'maxScale' properties set to gray the node at certain scale ranges. This doesn't affect the actual layer thought, only the node. To set the layer visibility depending on scales levels, see the related Map options.