(close)
(close portal)
Close all current inspector windows.
Close all current inspector windows.
(eval-str source)
(eval-str portal source)
Evalute ClojureScript source given as a string in the UI runtime.
Evalute ClojureScript source given as a string in the UI runtime.
(open)
(open portal-or-options)
(open portal options)
Open a new inspector window. A previous instance can be passed as parameter to make sure it is open.
Open a new inspector window. A previous instance can be passed as parameter to make sure it is open.
(register! var)
Register a var with portal. For now, the var should be a 1 arity fn.
Example: (register! #'identity)
The function name and doc string will show up in the command palette.
Register a var with portal. For now, the var should be a 1 arity fn. Example: `(register! #'identity)` The function name and doc string will show up in the command palette.
(set-defaults! options)
Set default options for open
and start
.
Parameters passed directly to either will override defaults.
Set default options for `open` and `start`. Parameters passed directly to either will override defaults.
(start options)
Start the HTTP server with non-default options. Only use if you need control over the HTTP server.
Start the HTTP server with non-default options. Only use if you need control over the HTTP server.
(submit value)
Tap target function.
Usage: (add-tap #'portal.api/submit) (remove-tap #'portal.api/submit)
Tap target function. Usage: (add-tap #'portal.api/submit) (remove-tap #'portal.api/submit)
(tap)
Add portal as a tap> target.
Add portal as a tap> target.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close