Liking cljdoc? Tell your friends :D

day8.re-frame.undo


app-explaincljs

Mirrors app-db

Mirrors app-db
sourceraw docstring

clear-history!cljs

(clear-history!)
source

clear-redos!cljs

(clear-redos!)
source

clear-undos!cljs

(clear-undos!)
source

configcljs

source

max-undoscljs

(max-undos)
source

purge-redo-handlercljs

(purge-redo-handler db _)
source

redocljs

(redo harvester reinstater undos cur redos)
source

redo-explain-listcljs

Mirrors redo-list

Mirrors redo-list
sourceraw docstring

redo-handlercljs

(redo-handler _ [_ n])
source

redo-listcljs

A list of future states, caused by undoing

A list of future states, caused by undoing
sourceraw docstring

redo-ncljs

(redo-n n)

redo n steps or until we run out of redos

redo n steps or until we run out of redos
sourceraw docstring

redos?cljs

(redos?)

Returns true if redos exist, false otherwise

Returns true if redos exist, false otherwise
sourceraw docstring

register-events-subs!cljs

(register-events-subs!)
source

store-now!cljs

(store-now! explanation)

Stores the value currently in app-db, so the user can later undo

Stores the value currently in app-db, so the user can later undo
sourceraw docstring

undocljs

(undo harvester reinstater undos cur redos)
source

undo-config!cljs

(undo-config! new-config)

Set configuration parameters for library.

Should be called on app startup.

Set configuration parameters for library.

Should be called on app startup.
sourceraw docstring

undo-explain-listcljs

Mirrors undo-list

Mirrors undo-list
sourceraw docstring

undo-explanationscljs

(undo-explanations)

Returns a vector of undo descriptions, perhaps empty

Returns a vector of undo descriptions, perhaps empty
sourceraw docstring

undo-handlercljs

(undo-handler _ [_ n])
source

undo-listcljs

A list of history states

A list of history states
sourceraw docstring

undo-ncljs

(undo-n n)

undo n steps or until we run out of undos

undo n steps or until we run out of undos
sourceraw docstring

undoablecljs

(undoable)
(undoable explanation)

returns a side-effecting Interceptor, which stores an undo checkpoint in :after processing. If the :effect cotnains an :undo key, then use the explanation provided by it. Otherwise, explanation can be:

  • a string (of explanation)
  • a function expected to return a string of explanation. It will be called with two arguments: db and event-vec.
  • a nil, in which case "" is recorded as the explanation
returns a side-effecting Interceptor, which stores an undo checkpoint in
`:after` processing.
 If the `:effect` cotnains an `:undo` key, then use the explanation provided
 by it. Otherwise, `explanation` can be:
   - a string (of explanation)
   - a function expected to return a string of explanation. It will be called
     with two arguments: `db` and `event-vec`.
   - a nil, in which case "" is recorded as the explanation
sourceraw docstring

undos?cljs

(undos?)

Returns true if undos exist, false otherwise

Returns true if undos exist, false otherwise
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close