lovasoa / elm-component-list

A generic Elm list component, that, given a component type, creates a list of it.

Home Page:https://lovasoa.github.io/elm-component-list

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

elm-component-list

A generic Elm list component, that, given a component type, creates a list of it.

Example

See it running online.

-- EXAMPLE
-- simple component that prints a hello button
cModel = "Hello"
cUpdate v _ = v
cView cmodel = input [onInput identity, value cmodel] []
main =
  App.beginnerProgram {
    model = init cModel,
    view = view (ViewParams "New hello" "Delete this hello") cView,
    update = update cUpdate
  }

About

A generic Elm list component, that, given a component type, creates a list of it.

https://lovasoa.github.io/elm-component-list

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Elm 100.0%