forked from hoppscotch/vue-toasted
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
282 additions
and
180 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import Vue from 'vue'; | ||
import VueToasted from 'vue-toasted'; | ||
|
||
Vue.use(VueToasted); | ||
|
||
/* NOTE : You will have to import material icons in order to work */ | ||
|
||
// use icon name as a string | ||
Vue.toasted.show('hello there, i am a toast !!', { icon : 'check'}); | ||
|
||
// you can pass an object and use name | ||
Vue.toasted.show( | ||
'hello there, i am a toast !!', { | ||
icon : { | ||
name : 'check' | ||
} | ||
}); | ||
|
||
// use after to append the icon after the content | ||
Vue.toasted.show( | ||
'hello there, i am a toast !!', { | ||
icon : { | ||
name : 'check', | ||
after : true | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "vue-toasted", | ||
"description": "Responsive Touch Compatible Toast plugin for VueJS 2+", | ||
"version": "1.0.3", | ||
"version": "1.0.31", | ||
"author": "Shakeeb Sadikeen <[email protected]>", | ||
"repository": { | ||
"type": "git", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters