For 1pt toward CanJS observables, I'd like to get it design to match something more like a traditional tree based navigation. 30 minutes of work.
This will be presented at the next DoneJS Chicago meetup.
You'll notice that I put the type (either folder or file) and hasChildren on the <li> and an isOpen on the <span> so it's possible to know the state of things.
Here's the starting jsbin:
http://jsbin.com/jebokuv/edit?html,css,output
For
1pt
toward CanJS observables, I'd like to get it design to match something more like a traditional tree based navigation. 30 minutes of work.This will be presented at the next DoneJS Chicago meetup.
You'll notice that I put the
type
(eitherfolder
orfile
) andhasChildren
on the<li>
and anisOpen
on the<span>
so it's possible to know the state of things.