문제

I want to disable selection of all nodes, except leafs. I mean, user should be able to select (radiobutton check) nodes only if it's leaf node of the tree. I see the docs and is indicated to use:

{title: "Sub-item 4.3 (hideCheckbox)", hideCheckbox: true },

But it's usefull if you create a tree from js data. I created the tree using an

    markup. I think, the solution is near if using:

    <li data='....'>Text Node
    

    Thanks in advance!

    도움이 되었습니까?

    해결책

    The data attribute is parsed as JSON, and then used to expand the data options, so

    <li data='"hideCheckbox": true'>Text Node
    

    should work.

    라이센스 : CC-BY-SA ~와 함께 속성
    제휴하지 않습니다 StackOverflow
    scroll top