Backbone-notification
live version http://ayxos.github.io/backbone-notification/
A tool for create simple bootstrap notification alerts using Backbone
using:
- bower (to get deps)
- Grunt (generate index.html/Css files and jade-js converter)
- require
- underscore (as template engine)
- jquery
- Backbone
Install using bower
bower install backbone-notification
- *need RequireJs and bootstrap
How-to use it
On your View just define type and message and init Notification
//Notification
, Notification = require('common/backbone-notification')
// SHOW NOTIIFICATION
new Notification({
// type could be: info/danger/success/warning
type: not_type,
msg: 'menu loaded'
});