Avgrund modal concept by @hakimel packaged as Backbone.View
JavaScript CoffeeScript
Latest commit 9eece68 Mar 22, 2013 @andreypopp 0.3.3
Permalink
Failed to load latest commit information.
example
.gitignore
LICENSE
Makefile
README
backbone.avgrund.coffee
backbone.avgrund.css
backbone.avgrund.js
backbone.avgrund.map
backbone.avgrund.sass
component.json
package.json

README

Excellent Avgrund modal concept by @hakimel packaged as Backbone.View.

    Avgrund = require 'backbone.avgrund'

    class MyModal extends Avgrund
      render: ->
        this.$el.html """
          <p>Hello, world</p>
          """
        this

    myModal = new MyModal()
    myModal.render()
    $(document.body).append myModal.el

    myModal.show() # also triggers 'show' event
    myModal.hide() # also triggers 'hide' event