elm-web-components icon indicating copy to clipboard operation
elm-web-components copied to clipboard

Add example with port that triggers a custom event

Open simonh1000 opened this issue 5 years ago • 0 comments

I need elm to be able to communicate back to js so an example that demonstrated that all worked would be great

It looks to me that you need to provide the webcomp to the setupPorts call back so that it can be used with dispatchEvent

              var self = this;
              setupPorts(elmElement.ports, self);

simonh1000 avatar Mar 23 '20 14:03 simonh1000