component event handler, and external event handlers #422
amitu
started this conversation in
Ideas & RFCs
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Once we have function support we can pass external event handlers. Also we can define event handlers in a separate place in the component.
Passing Event Handlers
Can we also do this:
Maybe even:
In Elm we only create partials from the front:
Application in ftd would happen in a named fashion, so
submit(x=10)will createfn(y, a),submit(y=2)will createfn(x, a)and so on.Defining Event Handlers
Instead of defining event handlers inline:
What if we defined them as functions:
This way code is a little bit more organised.
Default Function
Beta Was this translation helpful? Give feedback.
All reactions