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 options)Listens on root for each event type in :events, which maps an event type and a part name
to the meaning of a message for :dispatch!, and returns a function that removes the
listeners. :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.
An event that does not bubble reaches root in the capture phase, before the listeners below.
Listens on `root` for each event type in `:events`, which maps an event type and a part name to the meaning of a message for `:dispatch!`, and returns a function that removes the listeners. `: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. An event that does not bubble reaches `root` in the capture phase, before the listeners below.
(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 |