Skip to content

techwraith/ribcage-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

a modal for ribcage-ui

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published