0.0.2 • Published 10 years ago

ribcage-modal v0.0.2

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

ribcage-modal

a modal for ribcage-ui

install

npm install ribcage-modal

usage

  var Modal = require('ribcage-modal')
  
  var modal = new Modal({view: myView})
  
  modal.setContent(myOtherView)
  
  modal.addButton({label: 'done', action: function (){} })
  
  modal.clearButtons()
  
  modal.view.trigger('showBack') // shows a back button instead of a close button
  modal.view.trigger('hideBack') // hides the back button and shows the close button

  modal.close()