Topic: Can I show check boxes ONLY on leaf nodes?

Hi,

I'm a newbee to Mif and to MooTools...  I am loving both smile

For my application I only want check boxes on the leaf nodes (the end of the tree branch). 
My tree is 4 levels deep (if that makes any difference) and the leaves are always on level 4.

Can the Mif.Tree do this and if so how?

Thanks

Last edited by MichaelW (2010-07-02 15:22:38)

Re: Can I show check boxes ONLY on leaf nodes?

if you don't want checkbox on some nodes set hasCheckbox: false on this nodes. You can see it in simple checkbox demo - nodes without checkbox have gray box, if you don't want to show gray box, you can set in css:

.mif-tree-node-nochecked {display:none}