bespokejs / bespoke

DIY Presentation Micro-Framework
http://markdalgleish.com/projects/bespoke.js/
MIT License
4.69k stars 442 forks source link

Dynamic adding of slides #33

Closed MarZab closed 10 years ago

MarZab commented 10 years ago

Does dynamic adding of slides fit into this project, is there any plan to add it?

markdalgleish commented 10 years ago

I've thought about it, but never made any plans for it because it seems like an edge case for most people.

Can I get some details about your specific use case?

MarZab commented 10 years ago

A slide editor in AngularJS. Currently im using flexslider and I want to get away from it.

Doing stuff like adding, removing, reordering slides - the usual slide editing stuff.

markdalgleish commented 10 years ago

If you want to use Bespoke.js for this, I would recommend going as far as you can with the project as it exists currently, probably by re-initialising the deck whenever it's modified.

Rather than making dynamic deck modifications a core feature, I'd rather make sure that the core can support this use case in the form of a plugin, e.g. we might need to add a deck.destroy() method so that we can do some cleanup before you create a new deck.