On Monday, January 9, 2017 at 5:07:54 PM UTC, Peter Damoc wrote:
>
> In the final form, I would want to be able to set the label of the button 
> from a consumer of the component and receive some custom event from the 
> component. 
>

Do you want to set the label when the component is created, or at a later 
time? To do it at create time, set an attribute or property on the componet:

<my-button label="press me"/>

And to receive custom events, you are going to set up an 'on' handler?

myButton [ on "custom-event" CustomEvent ] []

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to