🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

jqtree

Package Overview
Dependencies
Maintainers
0
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jqtree

Tree widget for jQuery

1.8.10
latest
Source
npm
Version published
Weekly downloads
1.7K
7.21%
Maintainers
0
Weekly downloads
 
Created
Source

Build codecov

NPM version

jqTree

JqTree is a tree widget. Read more in the documentation.

screenshot

Features

  • Create a tree from JSON data
  • Drag and drop
  • Works on all modern browsers
  • Written in Typescript

The project is hosted on github.

Examples

Example with ajax data:

<div id="tree1" data-url="/example_data/"></div>
$("#tree1").tree();

Example with static data:

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.

Keywords

jquery-plugin

FAQs

Package last updated on 06 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts