backbone.avgrund

0.3.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i backbone.avgrund

Weekly Downloads

1

Version

0.3.3

License

MIT

Last publish

Collaborators

  • andreypopp