Opinionated modals with Knockout
Sep 16, 2014
What’s this?
Highly opinionated modals to achieve a user experience I like:
Why’s it matter?
It makes an impression, works with, and demonstrates interesting things in HTML5, Javascript ES6, CSS3 and Knockout.js.
What does it do?
There are a few problems Knockout Modal tackles, including:
- Modals longer than the viewport height
- Nesting of modals
- Concise code (~100 line of Javascript)
- Happily integrates with code for HTML5 history
- Accepts thenables (e.g. ES6 Promises) for data
- Separation of templates, code and style (opinionated … but reasonable).
© 2014