Alternative JS tree for yii framework, with drag-n-drop. Implements jQuery plugin jqTree: http://mbraak.github.com/jqTree/
Required Yii 1.1 or above (tested on 1.1.8).
jQuery 1.5+
$dataTree = array( array( 'label' => 'node1', 'children' => array( array('label' => 'child1'), array('label' => 'child2'), ), ), array( 'label' => 'node2', ) ); $this->widget('ext.yii-jqTree.JQTree', array( 'id' => 'treeview', 'data' => $dataTree, 'dragAndDrop' => true, 'selectable' => true, 'saveState' => true, 'autoOpen' => false, 'htmlOptions' => array( 'class' => 'treeview-red', ), ));
Download from github: https://github.com/lamerw/yii-jqTree
jqTree plugin page: http://mbraak.github.com/jqTree/
Total 2 comments
You should download arhive with extension, unpack it and place obtained folder into extensions directory. Example of usage you can see on this page - "Usage" :) section. If you have some questions or something isn't clear for you feel free to ask me
I would be interested in implementing this, however I am unsure on how to go about installing it, and modifying the script to make it work for my site.
Is there a tutorial available?
Thank you!
Leave a comment
Please login to leave your comment.