Liking cljdoc? Tell your friends :D

pushy.core


IHistorycljsprotocol

get-tokencljs

(get-token this)

start!cljs

(start! this)

stop!cljs

(stop! this)

replace-token!cljs

(replace-token! this token)
(replace-token! this token title)

set-token!cljs

(set-token! this token)
(set-token! this token title)
source

new-historycljs

(new-history)
(new-history transformer)
source

push-state!cljs

(push-state! dispatch-fn match-fn)
(push-state! dispatch-fn match-fn identity-fn)
source

pushycljs

(pushy dispatch-fn
       match-fn
       &
       {:keys [processable-url? identity-fn prevent-default-when-no-match?]
        :or {processable-url? processable-url?
             identity-fn identity
             prevent-default-when-no-match? (constantly false)}})

Takes in three functions:

  • dispatch-fn: the function that dispatches when a match is found
  • match-fn: the function used to check if a particular route exists
  • identity-fn: (optional) extract the route from value returned by match-fn
Takes in three functions:
* dispatch-fn: the function that dispatches when a match is found
* match-fn: the function used to check if a particular route exists
* identity-fn: (optional) extract the route from value returned by match-fn
sourceraw docstring

supported?cljs

(supported?)
(supported? window)

Returns whether Html5History is supported

Returns whether Html5History is supported
sourceraw docstring

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

× close