* Webpack config changes

* Updated documentation with example
* removed unwanted dependencies from starter pack
This commit is contained in:
Indrajith K L
2017-12-19 19:10:01 +05:30
parent 90d191ce4b
commit 9b608b89b1
13 changed files with 56 additions and 27 deletions

38
docs/example/example.js Normal file
View File

@@ -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: '<b>This is a content</b>',
type: 'warning',
timeout: 1000
});
}
window.showNotificationError = function(){
notif.show({
title: 'Notification Title',
content: 'This is a content with image <img src="64x64.png"/>',
type: 'error',
timeout: 2000
});
}
})(window);