tunpishuang tunpishuang - 6 months ago 66
Javascript Question

can jsTree use radio check

i know there is a plugin for jsTree named jquery.tree.checkbox.js.
that make the tree node multi checkable.

i just wondered if there is a plugin to raido check the tree node?
or how can i modify jquery.tree.checkbox.js to achieve that?

Answer

This can simply be done by adding the attribute

    rules:{
            multiple : false
          } 

Inside the configuration of the tree. This will make it impossible to choose multiple entries.

Comments