Skip to content

raxcat/AlertViewModal

Repository files navigation

AlertViewModal

Inspirated by UIAlertViewController and UIAlertView in iOS. Based on Marionette, bootstrap, underscore frameworks. AlertViewModal class extends from Marionette controller class. It is reusable and responsible for presenting a alert view model for you. Additionally, callbacks are easily setup for every button to suit any requirements.

Read the following cases or try a demo on JSFiddle.

OK button

  • Primary button(Required)

Alt text

OK and Cancel buttons

  • Primary button(Required)
  • Secondary button(Optional)

Alt text

4 buttons

  • Primary button(Required)
  • Secondary button(Optional)
  • 3rd button(Optional)
  • 4rd button(Optional)

Alt text

Dependency

  • bootstrap.js
  • bootstrap.css
  • jquery.js
  • underscore.js
  • backbone.js
  • backbone.marionette.js

About

AlertViewModal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors