Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gribouille/elm-combo
https://github.com/gribouille/elm-combo
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gribouille/elm-combo
- Owner: gribouille
- License: mpl-2.0
- Created: 2020-10-21T10:43:01.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-13T16:02:56.000Z (almost 4 years ago)
- Last Synced: 2024-09-30T05:22:33.653Z (about 1 month ago)
- Language: Elm
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elm-combo
ELM combobox component.
## Example
```elm
type alias Model =
{ state : Combo.State
}type Msg
= OnState Combo.Statedata : List String
data =
[ ... ]view : Model -> Html Msg
view model =
Combo.view (Combo.config OnState data) model.stateupdate : 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](./LICENSE).