(close)(close portal)Close all current inspector windows.
Close all current inspector windows.
(eval-str code)(eval-str portal code)(eval-str portal code opts)Evalute ClojureScript source given as a string in the UI runtime. The parameters:
portal portal instance returned from portal.api/open or :all
code (string) the ClojureScript source
opts (map) evaluation options.
:verbose - optional, return a map containing more info that just the value. Defaults to false. :await - optional, await a promise result. Defaults to false.
Evalute ClojureScript source given as a string in the UI runtime. The parameters:
portal
portal instance returned from portal.api/open or :all
code (string)
the ClojureScript source
opts (map)
evaluation options.
:verbose - optional, return a map containing more info that just the value.
Defaults to false.
:await - optional, await a promise result. Defaults to false.(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.
(repl portal)Start a repl for the given Portal session.
Start a repl for the given Portal session.
(sessions)Get all current portal sessions.
Get all current portal sessions.
(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |