Simple search input for use in Elm with debouncer capabilities.
This is not intended for external use yet and the docs will be filled out in more detail when ready.
There are other options that may suit your needs better than this project:
This package includes debouncing emission of input changes. Otherwise the other projects are more mature and (frankly) better written (twas written quickly for fun).
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
To install run:
elm install o-train/elm-search-inputimport Select
type alias YourItem =
{ id : Int
, name : String }
type alias YourModel =
{ items = List YourItem
, selectInput = Select.Model YourUser
}
initModel =
{ items = []
, selectInput = Select.basicInit etc.
}
type Msg =
...
| SelectInput (Select.Msg YourItem)
update : ...
SelectInput subMsg ->
SelectInput subMsg ->
let
( selectInputModel, selectMsg ) =
Select.update subMsg model.selectInput
in
( { model | selectInput = selectInputModel }, selectMsg |> Cmd.map SelectInput )
To contribute please open an MR/PR with a title and description of what it does. Point it to main branch
Olly Putland (Maintainer)
MIT License
Alpha