Skip to content
This repository was archived by the owner on May 3, 2023. It is now read-only.

Add example with port that triggers a custom event #18

@simonh1000

Description

@simonh1000

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions