jqtree Alternative JS tree, with drag-n-drop etc

  1. Requirements
  2. Usage
  3. Resources
  4. Demo

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/

5 1
14 followers
816 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: Artem Azarov
Created on: Sep 10, 2012
Last updated: 12 years ago

Downloads

show all

Related Extensions