Skip to content

PendalF89/yii2-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yii2-tree

Tree widget for Yii2 models

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"pendalf89/yii2-tree": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= TreeWidget::widget([
    'models' => $models,
    'value' => function($model) {
            return $model->title;
        }
]) ?>

About

Tree widget for Yii2 models

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages