Closed pedrazadixon closed 4 years ago
As of now, it's not possible. But I played around a bit and there is a way to do it by exposing currently displayed toast component using a method:
this.$toast.info(null, { timeout: 20000 })
setInterval(() => {
const cmp = this.$toast.getCmp()
if (cmp) {
cmp.message = new Date()
}
}, 1000)
Will this work in your use case?
P.S.: don't mind infinite interval :)
I try this but getCmp() is not defined.
@pedrazadixon, yes, because I haven't implemented it yet, just asking if this kind of workflow will work for your case?
Ahhh ok. Of course! It's just what I need
Thank you in advance for your answers.
Any way to update a part of message string in real time? I want notification (toast) that update a download progress from axios. ¿Any idea?