Dispatch multiple messages in response to a single
UI libraries in elm sometimes need to perform internal actions on
Html.Events such as
onFocus, while at the same time allowing library users to also respond to those events. This library provides such multiple dispatch.
The library was developed for the purpose of allowing elm-mdl to have stateful components such as
Textfield which also allow user provided event-handlers.
Textfield requires some internal state management on
onBlur events. However, users may also want to have event-handlers for those particular events and this is where
elm package install vipentti/elm-dispatch
An example of how to use the library may be found in the
© Ville Penttinen, 2016. Licensed under an Apache-2.0 license.