I am trying to add the following css, but it isn't working. I think I am going according to the documentation.
https://www.npmjs.com/package/vue-toasted
None of the following approaches work.
The function being used @click of a div.
showToast(){
this.$toasted.show('Email Sent!',{
position: "top-right",
duration : 5000,
class: 'toasting'
});
OR
showToast(){
this.$toasted.show('Email Sent!',{
position: "top-right",
duration : 5000,
className: ['toasting']
});
Style
.toasting {
color: yellow;
background-color: pink;
}
Default CSS should be overridden by your CSS. SO your need to use
!important
in your CSS. Here is the css :Working demo