tadcka/jstree-bundle

JsTree bundle on Symfony2

Installs: 11 425

Dependents: 4

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

v0.4.0 2015-09-25 09:22 UTC

This package is auto-updated.

Last update: 2024-04-15 01:56:23 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

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