# jsTree

## javascript tree component

### Documentation

## Instance creation

There are two ways to instantiate the tree.

NOTE: This only covers versions 0.9.6 and up. For older versions check the documentation included in the download.

Method 1

    $(container_node).tree([{ options }]);

Method 2

    var tree = $.tree_create();
    tree.init(container_node,[{ options }]);

- [REQ] container_node

  A jQuery object or the DOM node of the tree container.

- [OPT] options

  A javascript object containing all the configurations for the tree that are different from the defaults.