Liking cljdoc? Tell your friends :D

pushy.core


IHistorycljsprotocol

get-tokencljs

(get-token this)

on-click!cljs

(on-click! this e)

replace-token!cljs

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

set-token!cljs

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

start!cljs

(start! this)

stop!cljs

(stop! this)
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?
               skip-on-click]
        :or {processable-url? processable-url?
             identity-fn identity
             prevent-default-when-no-match? (constantly false)
             skip-on-click 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
  • skip-on-click: if pushy should skip registering on-click handler
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
* skip-on-click: if pushy should skip registering on-click handler
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