elm-combo

1.0.0 • Public • Published

elm-combo

ELM combobox component.

Example

type alias Model =
  { state : Combo.State
  }

type Msg
  = OnState Combo.State


data : List String
data =
  [ ... ]


view : Model -> Html Msg
view model =
  Combo.view (Combo.config OnState data) model.state


update : Msg -> Model -> Model
update msg model =
  case msg of
    OnState s ->
       { model | state = s }

Development

Execute the example:

> cd examples
> npm run dev

open http://0.0.0.0:3000.

License

This project is licensed under Mozilla Public License Version 2.0.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i elm-combo

Weekly Downloads

0

Version

1.0.0

License

MPL-2.0

Unpacked Size

23.7 kB

Total Files

6

Last publish

Collaborators

  • gribouille