I'm using this package <http://package.elm-lang.org/packages/evancz/elm-sortable-table/latest/> to display several different types of tables, with different sets of columns. The actual number of tables and the data within them is dynamic, but the types of tables are all definable ahead of time. Only one type of table needs to be visible at one time, but users should be able to switch back and forth between different tables. So, in my model I have a ThingList called currentThingList which is rendered in the view, and a Dict that holds all the ThingLists so the currentThingList can be set according to the users' wishes.
I don't see how the semantics of the data is relevant. On 1 August 2016 at 05:27, Søren Debois <[email protected]> wrote: > I meant, what are you trying to model? What's the /actual/ application > you're doing? > > -- > Søren Debois > Sent with Airmail > > Den 1. august 2016 kl. 13.20.47, [email protected] ([email protected]) > skrev: > >> Records, where each type has a different set of fields. >> >> On Aug 1, 2016, at 4:08 AM, debois <[email protected]> wrote: >> >> What actually goes in the lists? (As opposed to Foo, Bar etc.) >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Elm Discuss" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/elm-discuss/8FNvfSguIq8/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Elm Discuss" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/elm-discuss/8FNvfSguIq8/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Elm Discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/elm-discuss/8FNvfSguIq8/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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.
