lav45 / yii2-jstree
Widget for Yii Framework 2.0 to use JsTree
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/jstree: 3.2.*
- yiisoft/yii2: 2.0.*
This package is not auto-updated.
Last update: 2024-12-12 09:02:05 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'], // ... ] ]); ?>