yii-dream-team / yii2-jstree
Yii2 JsTree assets and widget
Installs: 40 493
Dependents: 0
Suggesters: 0
Security: 0
Stars: 30
Watchers: 6
Forks: 7
Open Issues: 3
Type:yii2-extension
Requires
- bower-asset/jstree: ~3
- yiisoft/yii2: ~2
This package is auto-updated.
Last update: 2024-12-17 20:26:55 UTC
README
jsTree is jquery plugin, that provides interactive trees. It is absolutely free, open source and distributed under the MIT license. jsTree is easily extendable, themable and configurable, it supports HTML & JSON data sources and AJAX loading.
This package allows you to integrate jsTree jQuery plugin into your project in a few minutes.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yii-dream-team/yii2-jstree "*"
or add
"yii-dream-team/yii2-jstree": "*"
to the require
section of your composer.json.
Usage
<?= \yiidreamteam\jstree\JsTree::widget([
'containerOptions' => [
'class' => 'data-tree',
],
'jsOptions' => [
'core' => [
'multiple' => false,
'data' => [
'url' => \yii\helpers\Url::to(['ajax/tree']),
],
'themes' => [
'name' => 'foobar',
'url' => "/themes/foobar/js/jstree3/style.css",
'dots' => true,
'icons' => false,
]
],
]
]) ?>
Licence
MIT