Alternative JS tree for yii framework, with drag-n-drop. Implements jQuery plugin jqTree: http://mbraak.github.com/jqTree/
Requirements ¶
Required Yii 1.1 or above (tested on 1.1.8).
jQuery 1.5+
Usage ¶
$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',
),
));
Resources ¶
Download from github: https://github.com/lamerw/yii-jqTree
jqTree plugin page: http://mbraak.github.com/jqTree/
Interesting
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!
RE: Interesting
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
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.