From 9b608b89b16953c8d717ed8fde02ae396eea6094 Mon Sep 17 00:00:00 2001
From: Indrajith K L
Date: Tue, 19 Dec 2017 19:10:01 +0530
Subject: * Webpack config changes * Updated documentation with example *
removed unwanted dependencies from starter pack
---
docs/example/example.js | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
create mode 100644 docs/example/example.js
(limited to 'docs/example/example.js')
diff --git a/docs/example/example.js b/docs/example/example.js
new file mode 100644
index 0000000..a0b53fa
--- /dev/null
+++ b/docs/example/example.js
@@ -0,0 +1,38 @@
+(function(window){
+ var notif = new VYN({
+ position: ['bottom', 'right']
+ });
+ var counter = 0;
+ window.showNotificationSuccess = function(){
+
+ notif.show({
+ title: 'Notification Title',
+ content: `This is a content ${counter}`,
+ timeout: 6000
+ });
+
+ counter += 1;
+ }
+ window.showNotificationWarning = function(){
+
+ notif.show({
+ title: 'Notification Title',
+ content: 'This is a content',
+ type: 'warning',
+ timeout: 1000
+ });
+ }
+ window.showNotificationError = function(){
+
+ notif.show({
+ title: 'Notification Title',
+ content: 'This is a content with image ',
+ type: 'error',
+ timeout: 2000
+ });
+ }
+
+
+
+
+})(window);
\ No newline at end of file
--
cgit v1.2.3