hoplon

The :hoplon: ClojureScript Web Framework - http://hoplon.io/
2019-06-01T04:36:26.018Z

@flyboarder Ok thanks! Ill check for it.

Ahmed Hassan 2019-06-01T08:06:05.018100Z

`(defn event-target-node-val [evt] (-> evt .-target .-value))` This is how I resolved the issue.

1👍
Ahmed Hassan 2019-06-01T10:49:06.018400Z

Aren't there some places where @ in front of cell is necessary?

Ahmed Hassan 2019-06-01T10:49:31.018600Z

Like when passing attribute value from parent to child, you have to deref it.

dave 2019-06-01T12:17:24.018800Z

there are exceptions, for sure

dave 2019-06-01T12:17:42.019Z

one example is when you're implementing a :click handler

Ahmed Hassan 2019-06-01T12:18:50.019200Z

I use (defn event-target-node-val [evt] (-> evt .-target .-value)) for :click handler to get value of event.

dave 2019-06-01T12:20:17.019500Z

a click handler is a function that gets run at the point in time when you click, and it's separate from the hoplon workflow of input and formula cells, so if your click handler needs to use the values of cells, you have to deref those cells

1👍