Actually, the existing documentation for Html.Keyed comes close to saying what
needs to be said:
> Works just like Html.node, but you add a unique identifier to each child
> node. You want this when you have a list of nodes that is changing: adding
> nodes, removing nodes, etc. In these cases,
Here is a quick example sketch of wrapping Http calls in request objects
and delaying conversion to commands. Untested but it compiles. (The tricky
part was handling the decoder since we need to bury the decoded type.)
type alias HttpResult a =
Result Http.Error a
makeStringTagger :
I think the requests-as-an-alternative-to-commands pattern would serve you
here. (Sorry no link but there was a more detailed example a while back.)
Basically, you create a type that parallels Cmd in that it supports batch and
map functionality and you have it embody the notion of making HTTP
We have an app based on making multiple HTTP requests to a server for various
pieces of information. All of these requests get implemented as tasks that more
or less immediately become commands which then get routed via tagging functions
as they flow up through the model. Pretty standard stuff.
On Oct 13, 2016, at 1:36 PM, Zinggi wrote:
>
> These are some very good points.
> I don't see how a library that doesn't store functions in the model could
> deal with these situations as easy as your library does.
Right there may be the argument for why keeping
Some repo to see this more advanced animations with CSS + Elm ??
--
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
On Fri, Oct 14, 2016 at 1:35 PM, 'Rupert Smith' via Elm Discuss <
elm-discuss@googlegroups.com> wrote:
> 1. Build some support into the Elm compiler for webcomponents.
>
There could also be a direction where Elm compiler only implements support
for Custom Elements.
It would be awesome if
That's great to hear! Whenever I searched for this, I only found an old
elm-dev post where implementing it was still being talked about.
I haven't really needed to write recursive loops in Elm yet. But in F#,
I've written a few.
On Thursday, October 13, 2016 at 11:21:50 PM UTC-5, Joey Eremondi
I have some experience in this, and for basic stuff you can use css. And it
keeps your elm code nicely focused on state, without complexity of having
to manage state transitions inside state.
e.g. for displaying and hiding a sidebar-menu which slides in from the
left, or a dropdown-menu,
I don't have any experience with this, but the TodoMVC example uses a tiny
bit of CSS animations:
See the '.todo-list li label' selector in 'style.css'
at https://github.com/evancz/elm-todomvc
-keith
On Thursday, October 13, 2016 at 10:03:34 AM UTC-7, Timothy Williams wrote:
>
> Whenever I
Just for the record, we discussed something similar here:
https://groups.google.com/forum/#!msg/elm-discuss/YKz8rgffoWc/k6WIihXRBAAJ;context-place=forum/elm-discuss
Le jeudi 13 octobre 2016 10:09:58 UTC+2, Bulat Shamsutdinov a écrit :
>
> Thank you everyone! I'm currently studying Draft.js to
On Tuesday, October 11, 2016 at 11:21:05 AM UTC+1, Rupert Smith wrote:
>
> I'm interested in expanding on the counter example to add more complexity
> - and I have a component in mind that will be useful to me - the listbox
> that I was working with previously.
>
> The areas to add more
12 matches
Mail list logo