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

dev-master / 1.0.x-dev 2016-01-25 07:18 UTC

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

Latest Stable Version Total Downloads Monthly Downloads Daily Downloads Latest Unstable Version License

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'],
		// ...	
	]
]); ?>