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
#defaults Source
defaults :: { keybindings :: Keybindings, playbackDelay :: Number }Default configuration for keybindings and the amount of delay when rewinding or fastforwarding through events
#withTimeMachine Source
withTimeMachine :: forall msg state. DebugWarning => ComponentDef msg state -> ComponentDef (Message msg) (State msg state)Wraps a ComponentDef to add a "time machine" debug tool to the Elmish UI
#withTimeMachine' Source
withTimeMachine' :: forall msg state. DebugWarning => { keybindings :: Keybindings, playbackDelay :: Number } -> ComponentDef msg state -> ComponentDef (Message msg) (State msg state)A version of withTimeMachine that allows configuring the keybinding for
showing/hiding the time machine