Fork me on GitHub
#hyperfiddle
<
2024-02-26
>
wei01:02:25

what's a good way to get the click event for ui4/button, since the handler e/fn doesn't receive the event? i'd like to call stopPropagation on it

Vincent02:02:24

O_o looking at some of the other macros they expose >event with variable arity / multimethod-esque dispatch...

Vincent02:02:34

if >event is not exposed i'm not really sure x.x

Vincent02:02:00

add a new macro to the ui4 file? lol xD

☝️ 1
Dustin Getz12:02:49

@U066TMAKS why do you want to call stopPropagation, IIRC the last time this was asked we solved it by disabling a containing <form> submit action

Dustin Getz12:02:51

you can also use the lower dom/on! interface for event-level operations

wei20:02:41

the button is a delete button that sits on top of a clickable tab. when the delete button is pressed, i don't want the click event to bubble and activate the tab. dom/on! works for this, thanks!

stripy14:02:05

Hi there, I am completely new here - just have started learning clojure a few days ago. So is there any web games made out of Electric? I feel fascinated about FE/BE network sync feature of Electric, I think this could be useful when making web games

Dustin Getz15:02:30

a couple people have tried to make games, you'll hit a problem – our lack of optimistic updates generally. (We have specific patterns for doing web forms with optimistic input controls, but it doesn't generalize to games)

Dustin Getz15:02:19

We'll be launching upgrades and improvements here after the next major version of Electric ships, which is coming in the spring

stripy01:02:20

Can't wait to see upgrade, appreciate what you guys are doing

Hendrik15:02:10

I made a first version of electric threejs bindings. could be useful for the graphics part.

Vincent23:02:05

@U023LKF2PQV could be very helpful ... https://cabbi.bo/nothing/ is a really amazing scrollable demonstration of what you can do in the basic scroll + 3D realm

henrik14:02:18

I’ve packaged up the code we use for https://www.npmjs.com/package/@multiplyco/tailwind-clj into an NPM plugin, in case anyone else has encountered long Tailwind compile times.

👀 2
👍 1