Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needed anyone help to understand the Actions in the Elm code. #229

Open
cocoricoworking opened this issue May 8, 2021 · 4 comments
Open
Labels

Comments

@cocoricoworking
Copy link

I'm unable to understand the Actions in the ELM code, mostly what I found is Ports are getting used in Actions...
Can anyone help ...

@AdrianoFerrari
Copy link
Contributor

Can you point to some specific line of code you need help understanding?

@cocoricoworking
Copy link
Author

@AdrianoFerrari
Thanks for your reaching out to me.

, onClick (Port (Keyboard "mod+enter"))

Please check out this line, and explain me in details.
Thanks again.

@cocoricoworking
Copy link
Author

Hi @AdrianoFerrari
Looking forward to hearing from you soon.
Best

@AdrianoFerrari
Copy link
Contributor

What I've done there in that line is say "When clicking this button, do the same actions as if you received a Keyboard "mod+enter" message from the toElm port."

I could have also made a separate action called CheckmarkClicked instead, but this way also works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants