Liking cljdoc? Tell your friends :D

stimulus.core


keyword->stimulus-valuecljs


register-controllers!cljs

(register-controllers! controllers)

Registers controllers using namespaces maps. The namespaces represents the controller and the name represents the action. The value of the key should be a function which takes two arguments, this and state.

:my-controller/static is a special keyword which a map as a value with the keys :targets and :values. :targets is a vector of strings and :values is a map of keyword / type pairs. For the type you can use regular Javascript types, or their keyword counterpart:

:vector  : js/Array
:boolean : js/Boolean
:integer : js/Number
:map     : js/Object
:string  : js/String
Registers `controllers` using namespaces maps. The namespaces
represents the controller and the name represents the action. The
value of the key should be a function which takes two arguments,
`this` and `state`.


`:my-controller/static` is a special keyword which a map as a value
with the keys `:targets` and `:values`. `:targets` is a vector of
strings and `:values` is a map of keyword / type pairs. For the type
you can use regular Javascript types, or their keyword counterpart:

```
:vector  : js/Array
:boolean : js/Boolean
:integer : js/Number
:map     : js/Object
:string  : js/String
```
raw docstring

start!cljs

(start!)

Starts the Stimulus application. Stimulus must be started before registering any controllers.

Starts the Stimulus application. Stimulus must be started before
registering any controllers.
raw docstring

stimulus-applicationcljs

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close