Liking cljdoc? Tell your friends :D

reacl-c-basics.pages.core


gotocljs

(goto path)

Returns an action that causes the browser to go to the given path. Must be emitted from an item below a history-router item.

Returns an action that causes the browser to go to the given
path. Must be emitted from an item below a history-router item.
sourceraw docstring

history-routercljs

(history-router history-impl pages)

Like html5-history-router, but with a custom History implementation.

Like `html5-history-router`, but with a custom History implementation.
sourceraw docstring

hrefcljs

(href route & params)

Return an url string for the given route, with arguments for the positional and maybe a map for query params as required by the given route. Note that this is the same as calling the route as a function.

Return an url string for the given route, with arguments for the
positional and maybe a map for query params as required by the given
route. Note that this is the same as calling the route as a function.
sourceraw docstring

html5-history-routercljs

(html5-history-router pages)

An item that renders to one of the pages from the given map of routes to pages, depending on the current browser location, which is monitored for changes. It also handles goto actions emitted from within, modifying the browser history accordingly. A page must be a function taking the arguments of the route, returning an item.

An item that renders to one of the pages from the given map of
routes to pages, depending on the current browser location, which is
monitored for changes. It also handles [[goto]] actions emitted from
within, modifying the browser history accordingly. A page must be a
function taking the arguments of the route, returning an item.
sourceraw docstring

routercljs

(router pages)

An item that renders to one of the pages from the given map of routes to pages, depending on the pathname and query of the current window location URI. Unlike html5-history-router this does not capture/monitor location changes, but it handles goto actions.

An item that renders to one of the pages from the given map of
routes to pages, depending on the pathname and query of the current
window location URI. Unlike [[html5-history-router]] this does not
capture/monitor location changes, but it handles [[goto]] actions.
sourceraw docstring

unload-confirmationcljs

(unload-confirmation & [disabled])

While this subscription is active, the browser shall warn the user about losing data if they leave the page, offering to stay on the page instead. If disabled is true, this does nothing.

While this subscription is
active, the browser shall warn the user about losing data if they
leave the page, offering to stay on the page instead. If `disabled` is
true, this does nothing.
sourceraw docstring

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

× close