The :hoplon: ClojureScript Web Framework - http://hoplon.io/

What is the idiomatic way to add an event listener to an element? Is using on! depracated? I want to have an element respond to drag events, used like (elem :drag-start #() :drag-end #())

flyboarder 2019-05-31T04:40:37.003900Z

@chromalchemy that would be the way

flyboarder 2019-05-31T04:41:17.004200Z

did you include your attribute providers?


I have been away from Hoplon for a while - What about shadowCLJS — I assume there is no reason not to use Hoplon with ShadowCLJS - and along the same line js interop since I need to use some js libraries in my project


i haven’t tried it, but i haven’t heard anyone say it doesn’t work, so i think it’s probably fine

flyboarder 2019-05-31T14:38:10.007600Z

@tbrooke I use shadow, it’s awesome

flyboarder 2019-05-31T14:38:29.008100Z

Checkout boot-shadow

Ahmed Hassan 2019-05-31T16:18:30.011300Z

Thanks. It's in function of :change attribute of hoplon/select tag.


@flyboarder Can you show a minimal example of "including attribute providers" for a an event that's not included by default.


@flyboarder A hello world with boot-shadow and hot-reloading would be be awesome too. I tried using shadow-cljs straight up and got stumped by cljsjs jquery errors.

flyboarder 2019-05-31T21:39:56.016600Z

@chromalchemy if the event does not exist you will need to implement it, I don’t have any examples of this There is already a hello world for that but I’m not sure where the repo is

flyboarder 2019-05-31T21:40:46.016900Z

Another Hoplon user built it