Module
Elmish.TimeMachine
- Package
- purescript-elmish-time-machine
- Repository
- mcordova47/purescript-elmish-time-machine
#Keybindings Source
type Keybindings = { toggle :: KeyboardEvent -> Boolean }A record of keybindings, each represented by a predicate function which
returns true iff a KeyboardEvent should trigger the given command
#withTimeMachine Source
withTimeMachine :: forall m msg state. DebugWarning => MonadEffect m => Functor m => ComponentDef' m msg state -> ComponentDef' m (Message msg) (State msg state)Wraps a ComponentDef to add a "time machine" debug tool to the Elmish UI
#withTimeMachine' Source
withTimeMachine' :: forall m msg state. DebugWarning => MonadEffect m => Functor m => Keybindings -> ComponentDef' m msg state -> ComponentDef' m (Message msg) (State msg state)A version of withTimeMachine that allows configuring the keybinding for
showing/hiding the time machine