Liking cljdoc? Tell your friends :D

reagent-dev-tools.core


default-panelscljs


dev-statecljs


dev-toolcljs

(dev-tool {:keys [panels] :or {panels default-panels}})

element-idcljs


register-state-atomcljs

(register-state-atom atom-name state-atom)

Add Reagent atom to the state panel with given name

Add Reagent atom to the state panel with given name
raw docstring

start!cljs

(start! opts)

Start Reagent dev tool.

Options:

  • :el (optional) The element to render the dev-tool into. If the property is given, but is nil, dev tool is not enabled. If not given, new div is created and used.
  • :state-atom (optional) The Reagent atom to add to state-tree panel. Additional atoms can be registered with register-state-atom function.
  • :state-atom-name (optional) Name for state atom, defaults to "App state".
  • :panels-fn (optional) Function which returns map of additional panels to display. You can use these to extend dev panel with your own application specific tool.
  • :margin-element (optional) Element where to set margin-bottom/right if the panel is open. This is helpful so that the dev tool isn't displayed over the application content.
Start Reagent dev tool.

Options:

- `:el` (optional) The element to render the dev-tool into. If the property is given,
but is nil, dev tool is not enabled. If not given, new div is created and
used.
- `:state-atom` (optional) The Reagent atom to add to state-tree panel. Additional atoms
can be registered with `register-state-atom` function.
- `:state-atom-name` (optional) Name for state atom, defaults to "App state".
- `:panels-fn` (optional) Function which returns map of additional panels to display.
You can use these to extend dev panel with your own application specific tool.
- `:margin-element` (optional) Element where to set margin-bottom/right if the panel is open.
This is helpful so that the dev tool isn't displayed over the application content.
raw docstring

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

× close