lav45 / yii2-jstree
Widget for Yii Framework 2.0 to use JsTree
dev-master / 1.0.x-dev
2016-01-25 07:18 UTC
Requires
- bower-asset/jstree: 3.2.*
- yiisoft/yii2: 2.0.*
This package is not auto-updated.
Last update: 2026-03-05 15:13:26 UTC
README
Widget for Yii Framework 2.0 to use JsTree
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist lav45/yii2-jstree "1.0.*"
or add
"lav45/yii2-jstree": "1.0.*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
use lav45\widget\JsTree; <?= JsTree::widget([ 'clientOptions' => [ 'core' => [ 'data' => $data // ... ], 'plugins' => ['types', 'dnd', 'contextmenu', 'wholerow', 'state'], // ... ] ]); ?>