Awesome
JsTreeBundle
TadckaJsTreeBundle integrates library JsTree.
Installation
Step 1: Download TadckaJsTreeBundle using composer
Add TadckaJsTreeBundle in your composer.json:
{
"require": {
"tadcka/jstree-bundle": "dev-master"
}
}
And set component dir, example:
{
"config": {
"component-dir": "web/components"
}
}
Now tell composer to download the bundle by running the command:
$ php composer.phar update tadcka/jstree-bundle
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Tadcka\JsTreeBundle\TadckaJsTreeBundle(),
);
}
Step 3: Include javascript and css
components/jstree/dist/themes/default/style.min.css
components/jquery/jquery.min.js
components/jstree/dist/jstree.min.js
License
This bundle is under the MIT license. See the complete license in the bundle:
Code License: Resources/meta/LICENSE