Re: [elm-discuss] Looking for subcomponent example to learn from

2016-10-22 Thread Nick H
Which of these elements can fire events? Is the text at the bottom the only place where the user can interact? If so, then the graphical elements up top can just be functions that take whatever data is needed to draw them. ivDrip : IvData -> Html a clock : Time -> Html a On Sat, Oct 22, 2016

[elm-discuss] Looking for subcomponent example to learn from

2016-10-22 Thread Brian Marick
My app currently has three logically/visually distinct components: The IV drip apparatus (upper left) is something that will be used in more than one page. I’ve been trying to find a way to make it a component that I can reuse, and I’ve been having a good deal of trouble (mostly, I’m

[elm-discuss] Re: More on external "components"

2016-10-22 Thread OvermindDL1
Elm's VirtualDom has such a thing just for that: https://github.com/elm-lang/virtual-dom/blob/master/src/Native/VirtualDom.js#L88-L98 However, it is only accessible via 'native' code javascript, thus you'd have to make a native module, which if that is fine for you... I also have no clue if

Re: [elm-discuss] Re: Inter-Component Communication in 0.17

2016-10-22 Thread Erik Lott
You're such a jerk Richard :) On Saturday, October 22, 2016 at 1:21:44 PM UTC-4, Richard Feldman wrote: > > Oh man, now I feel like a total jerk for my harsh tone. > > My apologies, and thank you for the update Erik! <3 > -- You received this message because you are subscribed to the Google

Re: [elm-discuss] Re: Inter-Component Communication in 0.17

2016-10-22 Thread Richard Feldman
Oh man, now I feel like a total jerk for my harsh tone. My apologies, and thank you for the update Erik! <3 -- 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

Re: [elm-discuss] Structure for large Elm apps

2016-10-22 Thread Dave Thomas
Hi I wrote that article as a general overview of how I structured a single page app after reviewing different approaches, and relying on some of my knowledge of what worked for me in F# too. Having the code structured in functions residing in modules made it really easy to update a specific

Re: [elm-discuss] Structure for large Elm apps

2016-10-22 Thread Wouter In t Velt
Op vrijdag 21 oktober 2016 21:01:29 UTC+2 schreef Ed Ilyin: > > Can you, please, provide an example? > In a SPA I am developing, I use a structure like: Helpers.elm Helpers -- folder with more helpers Nav.elm -- helpers for navigation Exam.elm -- helpers for updating the exam Summaries.elm

Re: [elm-discuss] Re: Inter-Component Communication in 0.17

2016-10-22 Thread Erik Lott
Problem solved! Post deleted (thumbs up) On Saturday, October 22, 2016 at 10:50:38 AM UTC-4, Richard Feldman wrote: > > On Friday, July 15, 2016 at 9:49:41 PM UTC-7, Erik Lott wrote: >> >> Max, build a non-trival 15+ page SPA within a single elm component, and >> tell me how that goes :) >> >>

Re: [elm-discuss] Re: Inter-Component Communication in 0.17

2016-10-22 Thread Erik Lott
As the OP, I agree. Don't do this. We quickly abandoned this functionality after we wrote it. One of those posts I would I could remove... On Saturday, October 22, 2016 at 10:50:38 AM UTC-4, Richard Feldman wrote: > > On Friday, July 15, 2016 at 9:49:41 PM UTC-7, Erik Lott wrote: >> >> Max,

[elm-discuss] Re: How do you name messages?

2016-10-22 Thread Lars Jacobsson
> > > > >- What is the system supposed to do: RegisterWithCredentials String >String >- What happened in the system: ClickRegistrationSubmit String String / >TapRegistrationSubmit String String > > > Let's have an argumented discussion around this :} > I think one of the main

[elm-discuss] Re: Inter-Component Communication in 0.17

2016-10-22 Thread Junhui Park
Thank you so much. Your post saved my day. Cheers. On Wednesday, July 13, 2016 at 2:28:18 PM UTC+10, Erik Lott wrote: > > As a quick note to anyone struggling with how to perform app wide > inter-component communication in elm 0.17 (e.g. anyone building a > non-trivial SPA), here is one simple

[elm-discuss] Re: More on external "components"

2016-10-22 Thread jhancock
Hi Mark, We're looking at possibly starting our first Elm project. Our app would in the first phase rely heavily on a robust multi-file (images) uploader such as DropZone.js Over time we would need other sophisticated js libs such as Quill.js Do you have time to share your experience or

[elm-discuss] Proposal: Add Debug.breakpoint to core

2016-10-22 Thread Robin Heggelund Hansen
While I spend a lot less time debugging in Elm than in JS, sometimes it's useful to debug the generated Javascript. This would be greatly simplified, if it was possible to add a `debugger;` statement to the code. What do people think of a new function added to the Debug module of