Question: What library is that?

Asked By
eeue56
Asked At
2017-10-04 14:12:11

Found 15 possible answers.

User Answered At Possible Answer
paul228 2017-10-04 14:12:34 this one : http://package.elm-lang.org/packages/rundis/elm-bootstrap/3.0.0 I could not manage to import import Html exposing (class)
eeue56 2017-10-04 14:16:28 import Html.Attributes exposing (class) so something like Grid.row [ Grid.attrs [ class "my-class" ] ] Looks like you'll want to use this attrs function : http://package.elm-lang.org/packages/rundis/elm-bootstrap/3.0.0/Bootstrap-Grid-Row#attrs
paul228 2017-10-04 14:17:44 oh great thanks you :slightly_smiling_face:
lysergia 2017-10-04 14:30:57 Probably want a list or array of alerts to show in your model, and a RemoveAlert Int message that removes the alert w/ the given index. Then send RemoveAlert alertIndex when the close button on the alert is clicked.
jxxcarlson 2017-10-04 14:49:44 Is http://elm-lang.org/docs/syntax up-to-date? I though infix operators were on their way out …
ilias 2017-10-04 14:52:30 That's still "on the table" afaik, but for now in 0.18 they're still there so documenting them is sensible
mfeineis 2017-10-04 15:04:54 the recommendation is not use custom infix operators and I see why... I wonder if ! will also be cut, never felt right to me
u0421793 2017-10-04 15:10:56 I didn't realise that json decoding was supposed to work on predictable json with a known amount and arrangement of fields.
mfeineis 2017-10-04 15:12:34 @u0421793 for more dynamic JSON stuff I'd suggest using a port and normalizing the data in JS
u0421793 2017-10-04 15:12:54 gah!
mfeineis 2017-10-04 15:12:54 but ilias might point you to a generic JSON parser right now :slightly_smiling_face:
ilias 2017-10-04 15:12:55 @mfeineis that one is most likely out. I mean, it could still be added back, but most likely it's out i.e. what is your use-case @u0421793 what do you mean with known amount and arrangement of fields?
coreyhaines 2017-10-04 15:13:46 More dynamic json can be parsed with some optionals, but the expectation is that you know the schema that you are parsing. Decode.andThen is also helpful when working with schemas that have a wider range of possibilities You can also leave as a Json.Value and then use specific decoders as you find out more about the structure @u0421793 what are you looking to parse that isn’t known ahead of time?
u0421793 2017-10-04 15:15:24 well, instead of body copy that follows how the author decided would be good to divide up into parts, it has to be known ahead of time, so that for example there will always be a headline, then three paragraphs, then an unordered list where one of the list items is another unordered list, then an image, and so on. All predestined beforehand, except for the actual content.
ilias 2017-10-04 15:15:48 I doesn't need to be known ahead of times, tho

Related Questions