pendalf89 / yii2-tree
Yii2 tree widget
Installs: 7 108
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 3
Open Issues: 2
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-11-28 09:16:11 UTC
README
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;
}
]) ?>