Sorry, I misinterpreted your question.

I would probably do it like this:
The int in your model is fine. The Msg type should still be of AID String
and then you can parse the string to an Int(or Maybe Int) in your update
function.

On Tue, 24 May 2016 at 17:09 Herwig Habenbacher <
herwig.habenbac...@gmail.com> wrote:

> Thanks - I was aware of that...
>
> >If you want to use an Int, you must transform the int to a string.
> But how to do that and where?
>
> On the view side? How?
> >input [ type' "number", placeholder "1", onInput AID ] []
>
> Or on the update side?
>
> Thanks!
>
> --
> 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 elm-discuss+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to