Yii 1.1: jqtree

Alternative JS tree, with drag-n-drop etc
15 followers

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/

Demo

http://yii-demo.16mb.com/

Total 2 comments

#12764 report it
Artem Azarov at 2013/04/10 03:02pm
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

#12763 report it
Tanya_new_2_yii at 2013/04/10 01:11pm
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!

Leave a comment

Please to leave your comment.

Create extension