Jquery jstree

Installs: 
22
Open Bugs: 
0
Development Status: 
Seeking co-maintainer(s)
Maintenance fixes only

Description

This module includes the jquery Jstree plugin. http://www.jstree.com/

Get involved

Dependencies

Integration

This module integrates with http://drupal.org/project/jq

Example

  • Download the jstree plugin http://www.jstree.com/
  • Extract the contents of the folder into [sites/all/modules/contrib]/jquery_jstree/jquery
  • Enable module
  • To include the plugin on call jquery_jstree_plugin_add()
  • To add a tree format like this for example (for more read jstree docs):

    Drupal.behaviors.ews_gestconf_services = function (context) {
        $(function () {
          $("#servicesgestconf").jstree({
            "json_data" : {
              "data" : [
                {
                  "data" : "A node",
                  "children" : [ "Child 1", "Child 2" ]
                },
                {
                  "attr" : { "id" : "li.node.id" },
                  "data" : {
                    "title" : "Long format demo",
                    "attr" : { "href" : "#" }
                  }
                }
              ]
            },
            "themes" : {"theme" : "default",
                  "url" : "sites/all/modules/custom/jquery_jstree/jquery/themes/default/style.css"
            },
            "plugins" : [ "themes", "json_data" ]
          });
        });
      }

    The url is very important, jstree doesnt correctly add the path to the ccs file. You could create a js var and add it with drupal_add_js instead of hard code the path like in the example.

Js tree doc

This one is more complete than the homepage http://docs.planbleu.org/modules/webportal/jquery/jsTree.v.0.9.5/documen...

Known issues

Locks forms : http://acquia.com/node/1399540

How can you be kept up to date?

Dominique De Cooman can be contacted for paid customizations of this module and for Drupal consulting and development. This is how I think about development and about consultancy

Releases: 
6.x-1.0
7.x-2.x-dev
6.x-1.x-dev
Release Dates: 
12/09/2010
09/30/2013
09/30/2013