Created by: arcanedev-maroc
Hi everyone,
I count on your guidance/help for my first PR
As i mentioned in my suggestion (#31266), this PR will allow us to add event listeners directly from an instantiated object with a new on()
method.
I've also added a new methd off()
to remove a registered event listener.
TODO:
-
Alert -
Button -
Carousel -
Collapse -
Dropdown -
Popover -
Modal -
Scrollspy -
Tab -
Toast -
Tooltip
I'll start with Modal
class just to be sure that i'm on the right path.
There is a class called EventHandler
, do i need to use it to add/remove event listeners?
Closes: #31266