Closed inkeliz closed 6 years ago
Using this library is possible to listen the Click or Change, like el.AddEventListener("change", false, func(...)).
Click
Change
el.AddEventListener("change", false, func(...))
However, how can I use the DispatchEvent? I mean, how I can el.DispatchEvent("change") to trigger the listener?
DispatchEvent
el.DispatchEvent("change")
I found a solution:
element.DispatchEvent(dom.WrapEvent(js.Global.Get("Event").New("change")))
Using this library is possible to listen the
Click
orChange
, likeel.AddEventListener("change", false, func(...))
.However, how can I use the
DispatchEvent
? I mean, how I canel.DispatchEvent("change")
to trigger the listener?