Skip to content

Commit 9eb4633

Browse files
committed
added target support on toast actions
1 parent b0f5911 commit 9eb4633

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
## Introduction
1616

17-
Vue Toasted is One of the Best Toast plugin available for VueJS. it is responsive, touch compatible, easy to use, attractive and feature rich with icons, actions etc...
17+
Vue Toasted is One of the Best Toast plugin available for VueJS. it is used by VueJS, Laravel, NuxtJS and trusted by many more organizations. it is responsive, touch compatible, easy to use, attractive and feature rich with icons, actions etc...
1818

1919
#### Interactive Demo
2020

@@ -133,6 +133,7 @@ All Good Now you have this cool toast in your project..
133133
text*|String|-| name of action
134134
href|String|`null`| url of action
135135
icon|String|`null`| name of material for action
136+
target|String|`null`| target of url
136137
class|String/Array|`null`| custom css class for the action
137138
push|Object |`null`| Vue Router push parameters
138139
onClick|Function(e,toastObject) |`null`| onClick Function of action

dist/vue-toasted.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-toasted.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/show.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ const createAction = (action, toastObject) => {
285285
el.href = action.href
286286
}
287287

288+
if (action.target) {
289+
el.target = action.target
290+
}
291+
288292
if (action.icon) {
289293

290294
// add icon class to style it

0 commit comments

Comments
 (0)