show fancytree checkboxes only for leaf nodes

3k Views Asked by At

Is it possible to parametrize the JQuery Fancytree (http://plugins.jquery.com/fancytree/) so it only shows checkboxes next to the leaf nodes?

EasyUI Tree provides such feature, for example: onlyLeafCheck http://www.jeasyui.com/documentation/tree.php

1

There are 1 best solutions below

2
On BEST ANSWER

You can globally enable checkboxes using tree's 'checkbox' option, and then hide them per node using the "hideCheckbox": true property.