2017 © Pedro Peláez
 

yii2-extension yii2-tree

Tree widget based on Fancytree plugin.

image

yii2mod/yii2-tree

Tree widget based on Fancytree plugin.

  • Thursday, November 23, 2017
  • by disem
  • Repository
  • 6 Watchers
  • 18 Stars
  • 4,379 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 7 Versions
  • 13 % Grown

The README.md

, (*1)

Yii2 Tree Widget


Tree widget based on Fancytree extension http://wwwendt.de/tech/fancytree/demo/#sample-default.html, (*2)

Latest Stable Version Total Downloads License Build Status, (*3)

Installation

The preferred way to install this extension is through composer., (*4)

Either run, (*5)

php composer.phar require --prefer-dist yii2mod/yii2-tree "*"

or add, (*6)

"yii2mod/yii2-tree": "*"

to the require section of your composer.json., (*7)

Usage

Once the extension is installed, simply add widget to your page as follows:, (*8)

 [
                ['title' => 'Category 1'],
                ['title' => 'Category 2'],
                [
                    'title' => 'Category 3',
                    'children' => [
                        [
                            'title' => 'Category 3.1',
                        ],
                        [
                            'title' => 'Category 3.2',
                            'children' => [
                                [
                                    'title' => 'Category 3.2.1',
                                ]
                            ],
                            'folder' => true,
                        ],
                    ],
                    'folder' => true,
                ],

            ],
            'clientOptions' => [
                'autoCollapse' => true,
                'clickFolderMode' => 3,
                'activate' => new \yii\web\JsExpression('
                        function(node, data) {
                              node  = data.node;
                              // Log node title
                              console.log(node.title);
                        }
                '),
            ],
        ]); ?>

You can also change the theme of Fancytree extension!, (*9)

To change the theme, you can configure the assetManager array in your application configuration:, (*10)

// skin-win8

'assetManager' => [
    'bundles' => [
        'yii2mod\tree\TreeAsset' => [
            'css' => [
                'skin-win8/ui.fancytree.less',
            ]
        ],
    ],
]

The Versions

23/11 2017

dev-master

9999999-dev

Tree widget based on Fancytree plugin.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Igor Chepurnoy
by Igor Chepurnoi

yii2 tree tree widget

23/11 2017

1.3.2

1.3.2.0

Tree widget based on Fancytree plugin.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Igor Chepurnoi

yii2 tree tree widget

21/03 2017

1.3.1

1.3.1.0

Tree widget based on Fancytree plugin.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Igor Chepurnoy

yii2 tree tree widget

28/01 2017

1.3

1.3.0.0

Tree widget based on Fancytree plugin.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Igor Chepurnoy

yii2 tree tree widget

31/12 2016

1.2

1.2.0.0

Tree widget based on Fancytree plugin.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Igor Chepurnoy

yii2 tree tree widget

16/12 2016

1.1

1.1.0.0

Tree widget based on Fancytree plugin.

  Sources   Download

MIT

The Requires

 

by Igor Chepurnoy

extension yii2 tree

17/06 2015

1

1.0.0.0

Tree widget based on Fancytree extension {@link http://wwwendt.de/tech/fancytree/demo/#sample-default.html)

  Sources   Download

MIT

The Requires

  • bower-asset/fancytree *

 

by Igor Chepurnoy

yii2 module