Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Library for browser based outliner [closed]

I'm looking for a free (GPL or BSD-type license) outliner library that works in a browser.

It doesn't have to be too complicated, just allow keyboard control of collapsing and expanding items, and changing their order.

Anyone know a good library for this? Do any of the big UI component libraries have an outliner? If not, how would I go about writing it from scratch? (Eg. would it be better to start with jQuery? Or something else?)

like image 474
interstar Avatar asked Nov 02 '08 18:11

interstar


1 Answers

The nestedSortable jQuery plugin is probably a good place to start. Below is an example of using form fields in each draggable and nest-able <li>. Then it's just a matter of implementing something to handle indenting by keyboard and outputting a proper array of data or serialized string, etc.

Demo: jsfiddle.net/Marcel/YUDHG/2 (edit)

like image 75
Marcel Avatar answered Oct 25 '22 09:10

Marcel