« Example 6 Example 8 »
This is an example of autoscroll. The tree will scroll automatically if you drag an item outside of the tree. Autoscroll will work automatically. There is no option for it.
<div id="scroll-container"> <div id="tree1"></div> </div>
#scroll-container { height: 200px; overflow-y: scroll; user-select: none; }
$('#tree1').tree({ data: ExampleData.exampleData });