Chapter 20. FolderTree: Creating the Tree

IN THIS CHAPTER

  • What FolderTree Does

  • Creating Folders and Links

  • Creating Subfolders

  • Adding Documents/Links

A popular JavaScript out there is FolderTree, a nifty creation by Marcelino Alves Martins. FolderTree allows you to create deeply nested items and folders, much like Windows Explorer. The advantages of using FolderTree are mainly that someone else has done all the debugging work and users already understand how folders work. Understanding FolderTree takes some work: It's a robust system with lots of moving parts. In this chapter, we'll see how to create the tree, and in the next two chapters we'll see how to draw the tree and handle user interaction, as well as how to customize FolderTree for your ...

Get Advanced JavaScript™: Insights and Innovative Techniques now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.