Sunday, August 26, 2012

Tree Component on JQuery

Sometimes for certain projects we need to implement multi-level tree menu similar to Windows Explorer. There are several plugins for JQuery, allowing to get it. I have tested a lot, and decided to stay on jsTree. It has a lot of features and is attractive by the following reasons:

  1. There is a built-in themes. They can be selected according to the design of the site. You can create your own themes;
  2. It is easy to change CSS;
  3. It works in all browsers, no need to worry about compatibility;
  4. Remembers the state of the open node in cookies;
  5. Smooth adjustable animation when you expand a node;
  6. The ability to assign an event when you click on a node;
  7. Assigning of special icons for the required nodes by type or individually;
  8. The ability to load prepared HTML-data to UL-menu, and via AJAX at JSON-format;
  9. The automatic collapse of open nodes when expanding the adjacent.

At this we’ll stop, though, there are other positive aspects. You can download the plugin from the official site.

So it looks like in action:

0 comments:

Post a Comment