The DOM events of a page as messages for an application.
The DOM events of a page as messages for an application.
(dispatcher state step view render!)A function of a message. It puts (step state message) into the state holder state,
renders the view of what state then holds, and returns the new state.
A function of a message. It puts `(step state message)` into the state holder `state`, renders the view of what `state` then holds, and returns the new state.
(listen! root {:keys [events] :as options})Adds one listener to root for each event type in :events, which maps an event type and a
part name to the meaning of a message for :dispatch!. :requested-values maps a request
event to what it asks of each attribute, and listen! cancels it when its part does not show
that after the dispatch.
Adds one listener to `root` for each event type in `:events`, which maps an event type and a part name to the meaning of a message for `:dispatch!`. `:requested-values` maps a request event to what it asks of each attribute, and `listen!` cancels it when its part does not show that after the dispatch.
(read-origin e)The origin of the event e: the keys on its path, outermost first, and the nearest part with
its node. A part is looked for no further than the nearest keyed node, and the path exists
only while the event is handled.
The origin of the event `e`: the keys on its path, outermost first, and the nearest part with its node. A part is looked for no further than the nearest keyed node, and the path exists only while the event is handled.
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 |