notify js code example

Example 1: notify js

$.notify("BOOM!", "error");

Example 2: notify.js

import toaster from "toasted-notes";
import "toasted-notes/src/styles.css"; // optional styles
toaster.notify("i am notifying you i will exit after 2s", {duration: 2000})

Example 3: notify js

var h5 = $("<h5/>").append("You MUST have some Foo !")

$.notify({
  title: h5
}, { 
  style: 'foo',
  autoHide: false,
  clickToHide: false
});

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

$.notify("Access granted", "success");

Tags:

Html Example