notie
Advanced tools
Comparing version 4.3.0 to 4.3.1
@@ -5,3 +5,3 @@ { | ||
"author": "Jared Reich", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"main": "./dist/notie.min.js", | ||
@@ -34,3 +34,3 @@ "files": [ | ||
}, | ||
"homepage": "https://jaredreich.com/projects/notie", | ||
"homepage": "https://jaredreich.com/notie", | ||
"devDependencies": { | ||
@@ -37,0 +37,0 @@ "babel-core": "6.23.1", |
@@ -6,3 +6,3 @@ # notie | ||
notie is a clean and simple notification, input, and selection suite for javascript, with no dependencies. | ||
demo: https://jaredreich.com/projects/notie | ||
demo: https://jaredreich.com/notie | ||
@@ -278,7 +278,21 @@ #### With notie you can: | ||
#### Use ES6 to inherit `this`: | ||
#### Use ES6 for nicer code and to inherit `this`: | ||
``` javascript | ||
notie.confirm('Is ES6 great?', 'Yes', 'Cancel', () => { | ||
this.location.href = 'htts://google.com' | ||
notie.confirm({ | ||
text: 'Leave the page?', | ||
submitCallback: () => this.location.href = 'https://google.com' | ||
}) | ||
notie.confirm({ | ||
text: 'Is ES6 great?', | ||
cancelCallback: () => notie.alert({ type: 3, text: 'Why not?' }), | ||
submitCallback: () => notie.alert({ type: 1, text: 'I Agree' }) | ||
}) | ||
notie.force({ | ||
type: 3, | ||
text: 'You cannot do that, sending you back.', | ||
buttonText: 'OK', | ||
callback: () => notie.alert({ type: 3, text: 'Maybe when you\'re older...' }) | ||
}) | ||
``` | ||
@@ -285,0 +299,0 @@ |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
86258
376