No dependencies
Plain javascript and plain css. Drop in a script tag or import it from your bundler.
A dependency-free tree view with drag and drop, keyboard navigation, lazy loading and state persistence.
This is the widget itself, built from src in this repository. Open the folders, select a node, walk through it with the arrow keys, and drag a node somewhere else.
new TreeElement({
autoOpen: 1,
data,
dragAndDrop: true,
htmlElement: document.getElementById("tree1"),
});