Searched through documentation but didn't find any clue.
It should be pretty obvious I guess?
How can I define an event in my custom element, so that I can use it like
<my-custom-element @my-event=${this.myEventHandler} /> ?
Thank you very much!
CustomEvent does what you need. You can find more info here: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent
But some pseudo code to get you started:
fireEvent() {
this.dispatchEvent(newCustomEvent('my-event');
}
@Christian24 It works! Thank you very much! =D
To be fixed in #413
Fixed in #413.
Most helpful comment
To be fixed in #413