문제

So, I've been using dynatree (http://wwwendt.de/tech/dynatree/doc/samples.html) with checkboxes for the listing of my data. Apparently, I wanted to remove the functionality that will let the checkboxes be clicked if <li> tag has been clicked. Been researching for this but did not yield to any solution.

도움이 되었습니까?

해결책

This little snippet should do what you want:

$("#my-div").dynatree({
  checkbox: true,
  onActivate: function (node) {
      node.data.unselectable = true;
  },          
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top