Hi, this happened to me recently and I'd like some advice from this group: I find myself wanting to combine html attributes from two sources, specifically lists of classes for an input field. A view, with access to model state, uses classList to generate classes that pull in state based colouring. That gets passed in to a function that behaves like a template and renders the field in a way that is suitable for where it appears in the app (fields get different classes when rendered in different places). Thus I end up with two Attribute Msg instances that I want to combine for the attributes of my input tag. In particular I want the classes specified in each of those attribute lists to be concatenated.
So, have I taken a wrong turn in my app design, is there a solution for combining attributes, or should I write one? -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
