Skip to content

Instantly share code, notes, and snippets.

@luislobo14rap
Last active September 25, 2019 20:20
Show Gist options
  • Save luislobo14rap/7c8cc6be5bb233177f1ee9b7af305a9a to your computer and use it in GitHub Desktop.
Save luislobo14rap/7c8cc6be5bb233177f1ee9b7af305a9a to your computer and use it in GitHub Desktop.
// noty-default-options.json v1
new Noty({
"text": "ABC",
"type": "success",
"layout": "topRight",
"theme": "sunset",
"timeout": 5000,
"visibilityControl": true
}).show();
// noty-options.json v1
new Noty({
"text": "ABC", // text to show in notification
"type": "alert", // "alert", "success", "error", "warning", "info" | "alert" is default
"layout": "topRight", // "top", "topLeft", "topCenter", "topRight", "center", "centerLeft", "centerRight", "bottom", "bottomLeft", "bottomCenter", "bottomRight" | "bottomRight" is default
"theme": "sunset", // "mint", "sunset", "relax", "nest", "metroui", "semanticui", "light", "bootstrap-v3", "bootstrap-v4" | "mint" is default
"timeout": 5000, // false = sticky | false is default
"progressBar": true, // true is default
"closeWidth": ["click"], // ["click", "button"] | ["click"] is default, "button" is a X at the top right of the notification
"visibilityControl": true // ensures users do not lose their notifications. | false is default
}).show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment