/backbone-notification

A simple notification lib for Backbone using requireJS and Bootstrap

Primary LanguageJavaScriptMIT LicenseMIT

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

ScreenShot

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'
  });