// By setting parameters
$('#notify_btn_1').on('click', function(){
var not = $.Notify({
caption: "Try it"
content: "Metro UI CSS is awesome!!!",
timeout: 10000 // 10 seconds
});
});
// Alternatively with default parameters
$('#notify_btn_1').on('click', function(){
var not2 = $.Notify.show("Metro UI CSS is awesome!!!");
var not3 = $.Notify.show("Metro UI CSS is awesome!!!", "Info...");
});
// Cancel timeout
not.clear();
// Reset timeout
not.close(1000);
// Close the notification immediately
not.close();
// Close all notifications and open a new one
// Do not close notifications which have already been closed
not2.closeAll().init({caption:"Done", content:"Finally"});
Parameters:
icon
Not yet implemented
caption
string
Notify title
content
string
Notify message
shadow
boolean
Show or hide Notify shadow (default: true)
width
int
default 'auto', if value != auto min-width sets
height
int
default 'auto', if value != auto min-height sets
style
{background: 'value', color: 'value'} or false
default false, you can set background and font color
timeout
int
milliseconds to hide notify, default 3000, null to disable timeout