nunntom/elm-ui-select/2.1.0

NOTE: the latest version is 4.0.0

Select.Request

You don't need to use this module unless you want to customise the request debounce delay and minimum character count to perform a request.

update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
    case msg of
        SelectMsg subMsg ->
            Select.updateWithRequest
                (Select.request fetchThings
                    |> Select.Request.withDelay 200
                    |> Select.Request.withMinLength 4
                )
                SelectMsg
                subMsg
                model.select
                |> Tuple.mapFirst (\select -> { model | select = select })

Request

withDelay : Float -> Request effect -> Request effect

For debouncing. How long should we wait after a user stops typing before sending a request?

withMinLength : Int -> Request effect -> Request effect

How many characters does a user need to type before a request is sent. If this is too low you may get an unmanagable number of results!