mdgriffith / style-elements

Create styles that don't mysteriously break!
http://package.elm-lang.org/packages/mdgriffith/style-elements/latest
BSD 3-Clause "New" or "Revised" License
445 stars 49 forks source link

Transpose tables #118

Closed eriktim closed 6 years ago

eriktim commented 6 years ago

Fixes #93.

eriktim commented 6 years ago

Ok, so basically the idea is to use something like

table Styles.None [ ]
    [ text "First name" :: List.map (text << .firstName) persons
    , text "Last name" :: List.map (text << .lastName) persons
    ]

That actually makes sense! Would be nice to add an example though. Interested in an updated PR including an example, @mdgriffith ?

mdgriffith commented 6 years ago

I'll update the docs, thanks!