https://github.com/ryank90/backbonenotifications
Handle alerts / messages in Backbone using the Bootstrap messaging component
https://github.com/ryank90/backbonenotifications
Last synced: about 1 year ago
JSON representation
Handle alerts / messages in Backbone using the Bootstrap messaging component
- Host: GitHub
- URL: https://github.com/ryank90/backbonenotifications
- Owner: Ryank90
- Created: 2014-06-11T12:53:13.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-13T08:38:50.000Z (about 12 years ago)
- Last Synced: 2025-07-04T11:06:33.883Z (about 1 year ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Backbone Notifications Manager
==============================
This module will handle all alerts and messages to be displayed in a backbone application with the bootstrap dependency.
Dependencies
====
Bootstrap
How to use
====
On its own:
var successNotification = new NotificationModule({
notifyType: 'success',
message: 'This is a success'
});
var errorNotification = new NotificationModule({
notifyType: 'error',
message: 'This is an error'
});
With the ViewManager Plugin to handle instances [ViewManager](https://github.com/Ryank90/backbone-view-manager)
var successNotification = ViewManager.ViewCreate('successNotification', function () {
return new NotificationModule({
notifyType: 'success',
message: 'This is a success'
});
});
var errorNotification = ViewManager.ViewCreate('errorNotification', function () {
return new NotificationModule({
notifyType: 'error',
message: 'This is an error'
});
});
**NotifyTypes include:**
* Success
* Error
* Warning
* Information
**Other options that can be passed:**
* automaticallyClose: boolean (true or false) - this will automatically close the notification