Notie

notie

A simple notification plugin.

notie - A clean and simple notification plugin with alert/growl style, has no dependencies, help us to take an input, confirmation or alter the users in a more appealing manner.

It's uses material design, you can override or add styling in a separate .css file.

Get it: npm install --save notie

Sample usage:

1
2
3
4
5
6
7
var notie = require('notie);

notie.alert(style_number, 'message', time_in_seconds);

notie.confirm('Title text', 'Yes button text', 'No button text', yes_callback);

notie.input('Title text', 'Submit button text', 'Cancel button text', 'type', 'placeholder', submit_callback, 'Optional pre-filled value');
1
2
3
notie.input('What city do you live in?', 'Submit', 'Cancel', 'text', 'Enter your city:', function(value_entered) {
    notie.alert(1, 'You entered: ' + value_entered, 2);
}, 'New York');

P.S: style_number -> {1,2,3,4} <=> {Success, Warning, Error, Information}

GIF FTW:

notie

Suggest a module

Comments