npm

Don't miss out on this year's npm Pride t-shirt designs!Order your favorites here »

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

Keywords

none

install

npm i backbone.avgrund

Downloadsweekly downloads

32

version

0.3.3

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability