kalutheo / elm-ui-explorer / UIExplorer.Plugins.Knobs

Knobs

This plugin allows to make stories that are controbale with UI Inputs.

See usage here

viewEnhancer : UIExplorer.Model a b { c | knobs : Basics.Bool } -> (UIExplorer.Model a b { c | knobs : Basics.Bool } -> { c | knobs : Basics.Bool } -> Html msg) -> Html msg

Knobs view enhancer

viewKnobsForUI : { d | customModel : c } -> (Debug.Control.Control a -> b) -> (c -> Debug.Control.Control a) -> Html (UIExplorer.Msg b)

Display the Controls -

updateKnobs : { b | customModel : a } -> c -> (c -> a) -> ( { b | customModel : a }, Platform.Cmd.Cmd msg )

Update for knobs model -