[elm-discuss] Re: Looking for a reasonable way to conditionally handle an element and all of its childern losing focus

2017-04-06 Thread Jon Zeppieri
An update, in case anyone is interested: I ended up using `Html.Attributes.property` to set a distinguished property (rather than an attribute) on any of the menu's focusable descendants and then checked for the existence of that property on the event's relatedTarget. So I was able to avoid

[elm-discuss] Re: Looking for a reasonable way to conditionally handle an element and all of its childern losing focus

2017-04-06 Thread Jon Zeppieri
Thanks for your response. I think our cases are a bit different -- the element that you're putting a blur handler on has no children -- but I might be able to use a similar approach, nevertheless. -J On Thursday, April 6, 2017 at 3:17:22 PM UTC-4, Eric G wrote: > > I did this by requiring an

[elm-discuss] Re: Looking for a reasonable way to conditionally handle an element and all of its childern losing focus

2017-04-06 Thread Eric G
I did this by requiring an id for the menu element in config, and then checking the id of relatedTarget against this, on blur. See: https://github.com/ericgj/elm-autoinput/blob/master/src/Autoinput.elm#L357 I'm not convinced it's the best way but it worked for me for the moment. On Thursday,

[elm-discuss] Looking for a reasonable way to conditionally handle an element and all of its childern losing focus

2017-04-06 Thread Jon Zeppieri
I have a menu that, when it loses focus, needs to generate an update message to close the menu. Of course the menu is composed, at the DOM level, of several nodes. If I attach a blur or focusout handler at the menu's root element, it is fired whenever that particular element loses focus, even

Re: [elm-discuss] Re: elmvm (Elm Version Manager)

2017-04-06 Thread Rehno Lindeque
I'm a little surprised that more people haven't tried nix for pinning their Elm tools... E.g. pop a shell.nix file like this into your project root and you'll have it pinned to elm 0.18 indefinitely: { bootpkgs ? (import {}).pkgs }: let pkgs = import (bootpkgs.fetchFromGitHub {

Re: [elm-discuss] Re: elmvm (Elm Version Manager)

2017-04-06 Thread Nicholas Hollon
> > There needs to be a better advertising of the ecosystem both in terms of > tools and in terms of packages. > I agree with this, but the effort needs to start with the library authors. As far as I can tell (searching this list, Google, & r/elm), Erik is the only one of these authors who

Re: [elm-discuss] Re: ANN: TypedSvg

2017-04-06 Thread Duane Johnson
> > >> - separate out the Animation elements and attributes into their own module >> - continue to add length-unit-specific modules like InPx and InEm (InPt, >> InMm, etc.) >> - move `text` element from Core to regular elements (TypedSvg) >> > > These things sound fairly structural, so perhaps

Re: [elm-discuss] Re: ANN: TypedSvg

2017-04-06 Thread 'Rupert Smith' via Elm Discuss
On Thursday, April 6, 2017 at 3:44:56 PM UTC+1, Duane Johnson wrote: > > On Thu, Apr 6, 2017 at 8:03 AM, 'Rupert Smith' via Elm Discuss < > elm-d...@googlegroups.com > wrote: > >> What are the immediate todos that need worked on? Is there a list of >> issues on the github project, for example? >>

Re: [elm-discuss] Re: ANN: TypedSvg

2017-04-06 Thread Duane Johnson
On Thu, Apr 6, 2017 at 8:03 AM, 'Rupert Smith' via Elm Discuss < elm-discuss@googlegroups.com> wrote: > On Saturday, April 1, 2017 at 5:15:47 AM UTC+1, Duane Johnson wrote: >> >> The short term goal is to make a typed SVG library (as mentioned earlier, >> fully typed and documented). Medium-term,

Re: [elm-discuss] Re: ANN: TypedSvg

2017-04-06 Thread 'Rupert Smith' via Elm Discuss
On Saturday, April 1, 2017 at 5:15:47 AM UTC+1, Duane Johnson wrote: > > The short term goal is to make a typed SVG library (as mentioned earlier, > fully typed and documented). Medium-term, I'd like to adopt some sensible > module partitions that help segregate functionality into logical units

Re: [elm-discuss] How to generate an html select using Dict.foldl

2017-04-06 Thread Brian Carroll
The smallest change to fix this is to replace a pair of parentheses with brackets around the `option`, as below. import Dict import Html exposing ( .. ) import Html.Attributes exposing ( .. ) data = Dict.fromList [ ( 1, "Cat"), ( 2, "Jerry" ), ( 3, "Hat" ) ] type Message = Message listing

[elm-discuss] Responsive/Mobile styles for package.elm-lang.org

2017-04-06 Thread Martin Liberg
Hello! I'd like to make package.elm-lang.org more nice to view on a mobile device. Is this something we want?

Re: [elm-discuss] Re: elmvm (Elm Version Manager)

2017-04-06 Thread Peter Damoc
On Thu, Apr 6, 2017 at 3:43 PM, Eirik Sletteberg wrote: > None of these tools are mentioned in the Elm documentation. It only points > to installers and the npm module. Exactly my point. There needs to be a better advertising of the ecosystem both in terms of tools

Re: [elm-discuss] Re: elmvm (Elm Version Manager)

2017-04-06 Thread Eirik Sletteberg
None of these tools are mentioned in the Elm documentation. It only points to installers and the npm module. -- 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] Re: elmvm (Elm Version Manager)

2017-04-06 Thread Peter Damoc
On Thu, Apr 6, 2017 at 2:00 PM, Richard Wood wrote: > Very healthy having competing options in the ecosystem > :) > > No, this is against Elm philosophy as I understand it. Elm aims to have one, excellent option rather than a plethora of slightly different libraries/tools.

Re: [elm-discuss] Re: Elm events 2017

2017-04-06 Thread Noah Hall
Mine is going to be different, and the CFP is open, so I doubt there will be much duplication :) Luke is also going to be talking in Oslo, and they're not going to speak at ElmEurope. The goal is to have a complementary conference to ElmEurope, so people can go to both :). You can check out the

Re: [elm-discuss] Re: elmvm (Elm Version Manager)

2017-04-06 Thread Richard Wood
Very healthy having competing options in the ecosystem :) -- 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

Re: [elm-discuss] Re: Elm events 2017

2017-04-06 Thread Richard Wood
Hi Noah Is Oslo likely to be the same talks as the speakers did at Elm Europe? If not I'll come to that as well. Cheers Richard -- 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,