javascript - Disable FancyTree Nodes - Stack Overflow

Is there anyway to disable fancytree node? Am using Select: 2 option along with Ajax call to populate t

Is there anyway to disable fancytree node? Am using Select: 2 option along with Ajax call to populate the tree. I get the data from DB and need to show my preselected node selected and disabled as below.

One option is to set below properties as:

hideCheckbox: true

selected: true

But this makes the checkbox hidden (as shown in green background below)

Can't I just disable the node itself(as in 1st pic)? Something similar to diabling of entire tree with below option.

disabled: false (disables the tree)

UPDATE

If I use unselectable true then I loose the checked box check. ( screen below)

unselectable: true

selected: true

Is there anyway to disable fancytree node? Am using Select: 2 option along with Ajax call to populate the tree. I get the data from DB and need to show my preselected node selected and disabled as below.

One option is to set below properties as:

hideCheckbox: true

selected: true

But this makes the checkbox hidden (as shown in green background below)

Can't I just disable the node itself(as in 1st pic)? Something similar to diabling of entire tree with below option.

disabled: false (disables the tree)

UPDATE

If I use unselectable true then I loose the checked box check. ( screen below)

unselectable: true

selected: true

Share Improve this question edited Jul 16, 2015 at 7:30 pranav asked Jul 15, 2015 at 14:14 pranavpranav 4311 gold badge11 silver badges28 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

There is no option to disable a node altogether, but you can 'disable' checkboxes using the unselectable option.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745616140a4636247.html

相关推荐

  • javascript - Disable FancyTree Nodes - Stack Overflow

    Is there anyway to disable fancytree node? Am using Select: 2 option along with Ajax call to populate t

    22天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信