Skip to content

Commit

Permalink
classNames options added.
Browse files Browse the repository at this point in the history
  • Loading branch information
s4l1h committed Jul 10, 2019
1 parent f6f50d4 commit 537885a
Show file tree
Hide file tree
Showing 9 changed files with 3,669 additions and 7 deletions.
7 changes: 7 additions & 0 deletions demo/Demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ export default {
};
},
mounted() {
this.$toastr.defaultTimeout = 10000; // default timeout : 5000
this.$toastr.defaultClassNames = ["animated", "zoomInUp"];
this.$toastr.s(
"This Message From Toastr Plugin\n You can access this plugin : <font color='yellow'>this.$toastr</font>"
);
this.$toastr.defaultClassNames = ["animated", "bounceInRight"];
this.$toastr.defaultPosition = "toast-top-left";
this.$toastr.s(
"This Message From Toastr Plugin\n You can access this plugin : <font color='yellow'>this.$toastr</font>"
Expand All @@ -45,6 +51,7 @@ export default {
timeout: 0, // Remember defaultTimeout is 5 sec..
position: "toast-bottom-center",
type: "error",
classNames: ["animated", "flipInX"],
onCreated: () => {
this.showRemoveButton = true;
},
Expand Down
Loading

0 comments on commit 537885a

Please sign in to comment.