treetable Tree Table

  1. Documentation
  2. Change Log

The treeTable plugin allows you to display a tree in a table, i.e. a directory structure or a nested list. Each branch in this tree can be collapsed and expanded, just like in a file explorer in most modern operating systems.

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract the release file under protected/extensions
Usage

See the following code example:

$this->widget('ext.treetable.JTreeTable',array(
    'id'=>'treeTable',
    'primaryColumn'=>'id',
    'parentColumn'=>'parent_id',
    'columns'=>array(
        'id'=>array(
            'label'=>'Id',
            'headerHtmlOptions'=>array('width'=>80),
            'htmlOptions'=>array('align'=>'center'),
        ),
        'name'=>'Name',
    ),
    'items'=>array(
        array('id'=>1,'parent_id'=>0,'name'=>'test 1'),
        array('id'=>2,'parent_id'=>1,'name'=>'test 1\'s children 1'),
    ),
    'options'=>array(
        'initialState'=>'expanded',
    ),
));

Change Log

April 30, 2010
  • Initial release.
3 9
9 followers
2 171 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags:
Developed by: jerry2801
Created on: Apr 30, 2010
Last updated: 5 years ago

Downloads

show all