bitovi / training

Bitovi's training material
MIT License
19 stars 5 forks source link

Show how to build a filesystem ~1 #19

Closed justinbmeyer closed 7 years ago

justinbmeyer commented 7 years ago

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.

file_system_tree

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.

justinbmeyer commented 7 years ago

(this doesn't have to be nearly as fancy as the windows editor)