LexiFi / ocaml-vdom

Elm architecture and (V)DOM for OCaml
MIT License
197 stars 13 forks source link

Add cancellable double click handler #45

Closed slegrand45 closed 1 year ago

slegrand45 commented 1 year ago

Hi,

This is in addition to the already existing cancellable simple click. I use this new handler on table rows.

Thank you.

alainfrisch commented 1 year ago

Thanks!

However, we are currently working on allowing arbitrary user-defined event handlers in Vdom, based on a notion of "event decoder" (same as in Elm). We will also reimplement all existing handlers with this new system.

This is currently being developed and tested in our internal version at LexiFi, and we will push it upstream afterwards.

Your proposal could then be implemented in "user land" (but we can of course also add the function to the Vdom interface -- to be discussed). Anyway, I suggest to wait for a few weeks, to avoid a conflict with our ongoing development.

cc @aureliensaue who is working on this extension.

slegrand45 commented 1 year ago

Ok, no problem, i will wait for this new version. Thanks!

AurelienSaue commented 10 months ago

Hi @slegrand45, the new version has now been released: https://github.com/LexiFi/ocaml-vdom/tree/0.3!

slegrand45 commented 10 months ago

Excellent news! Thank you very much.