New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to add listeners directly to objects like Modals/Collapse/etc #31266
Projects
Comments
arcanedev-maroc
changed the title
[Feature][v5] Ability to add listeners directory to objects like Modals/Collapse/etc
[v5] Ability to add listeners directory to objects like Modals/Collapse/etc
Jul 9, 2020
arcanedev-maroc
changed the title
[v5] Ability to add listeners directory to objects like Modals/Collapse/etc
[v5] Ability to add listeners directly to objects like Modals/Collapse/etc
Jul 9, 2020
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 ? |
arcanedev-maroc
changed the title
[v5] Ability to add listeners directly to objects like Modals/Collapse/etc
Ability to add listeners directly to objects like Modals/Collapse/etc
Jul 9, 2020
I think this would make a prudent addition. |
PRs welcome, but the sooner the better before v5 hits stable :) |
11 tasks
I would love if that supported chaining. E.g.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How about a public method to add listener(s) to an object, something like:
This will allows us to do something like:
Instead of:
The text was updated successfully, but these errors were encountered: