https://mbraak.github.io/jqTree/
Tree widget for jQuery
https://mbraak.github.io/jqTree/
javascript jqtree jquery tree tree-widget typescript
Last synced: 12 days ago
JSON representation
Tree widget for jQuery
- Host: GitHub
- URL: https://mbraak.github.io/jqTree/
- Owner: mbraak
- License: apache-2.0
- Created: 2011-05-09T17:28:22.000Z (almost 14 years ago)
- Default Branch: dev
- Last Pushed: 2025-04-18T05:30:06.000Z (17 days ago)
- Last Synced: 2025-04-18T18:36:53.822Z (17 days ago)
- Topics: javascript, jqtree, jquery, tree, tree-widget, typescript
- Language: TypeScript
- Homepage: https://mbraak.github.io/jqTree/
- Size: 19.8 MB
- Stars: 1,026
- Watchers: 49
- Forks: 179
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-json - jqTree - Widget for displaying a tree structure in html. (jQuery) (Frontend components)
README
 [](https://codecov.io/gh/mbraak/jqTree)
[](https://www.npmjs.com/package/jqtree)
# jqTree
JqTree is a tree widget. Read more in the [documentation](https://mbraak.github.io/jqTree/).

## Features
- Create a tree from JSON data
- Drag and drop
- Works on all modern browsers
- Written in TypescriptThe project is hosted on [github](https://github.com/mbraak/jqTree).
## Examples
Example with ajax data:
```html
``````js
$("#tree1").tree();
```Example with static data:
```js
var data = [
{
label: "node1",
id: 1,
children: [
{ label: "child1", id: 2 },
{ label: "child2", id: 3 },
],
},
{
label: "node2",
id: 4,
children: [{ label: "child3", id: 5 }],
},
];
$("#tree1").tree({
data: data,
autoOpen: true,
dragAndDrop: true,
});
```## Documentation
The documentation is on http://mbraak.github.io/jqTree/.
## Thanks
The code for the mouse widget is heavily inspired by the mouse widget from jquery ui.