Fork me on GitHub
#hoplon
<
2019-05-31
>
chromalchemy03:05:57

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 #())

flyboarder04:05:37

@chromalchemy that would be the way

flyboarder04:05:17

did you include your attribute providers?

tbrooke12:05:50

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

alandipert12:05:13

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

flyboarder14:05:10

@tbrooke I use shadow, it’s awesome

flyboarder14:05:29

Checkout boot-shadow

chromalchemy20:05:47

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

chromalchemy20:05:19

@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.

flyboarder21:05:56

@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

flyboarder21:05:46

Another Hoplon user built it