notifyjs code example
Example 1: notify jquery
$.notify("BOOM!", "error");
Example 2: notify.js
import toaster from "toasted-notes";
import "toasted-notes/src/styles.css";
toaster.notify("i am notifying you i will exit after 2s", {duration: 2000})
Example 3: notify js
$.notify("Access granted", "success");
Example 4: notify js
var h5 = $("<h5/>").append("You MUST have some Foo !")
$.notify({
title: h5,
button: 'Ok'
}, {
style: 'foo',
autoHide: false,
clickToHide: false
});
Example 5: notify js
var h5 = $("<h5/>").append("You MUST have some Foo !")
$.notify({
title: h5,
button: 'Ok !'
}, {
style: 'foo',
autoHide: false,
clickToHide: false
});
Example 6: notify js
var h5 = $("<h5/>").append("You MUST have some Foo !")
$.notify({
title: h5
}, {
style: 'foo',
autoHide: false,
clickToHide: false
});