Open arcanedev-maroc opened 4 years ago
Hi @arcanedev-maroc,
Thanks I think it's a good idea, it'll be easier to listen to our events 👍
Any other thoughts @twbs/js-review ?
I think this would make a prudent addition.
PRs welcome, but the sooner the better before v5 hits stable :)
Hi @XhmikosR, i've created a PR: #32184
I would love if that supported chaining. E.g.
let modal = new Modal(element)
.on('shown', e => { })
.show()
How about a public method to add listener(s) to an object, something like:
This will allows us to do something like:
Instead of: