collective/collective.dynatree — pull request #4 by do3cc (2011-11-10 11:08:33+00:00)
Title: New backend, with new features

This is the new backend, I opened the feature request for discussion. It is feature complete, but some of the new features need basic styling.

First the featues:
- search filter: Hide elements if they do not match search term and are not selected
- sparse tree button: Hide nodes that are not selected
- flatlist: show all selected elements in a flat ul list. As Inline elements they occupy less space. The selected elements have a button to remove the selection

With multiple representations of the data, and the main element, the dynatree not always showing the canonical tree, some changes were necessary.
To avoid the complexity I encountered when I first created slc.treecategories, I decided to split the code in models and views. For that I am using the backbone library.

I do not see a sensible way to make backbone optional without implementing its features alone. If this is still wanted, I would make it a different package, collective.dynatreeXtreme or something ;-)