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?)
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With