Commit Graph

2 Commits

Author SHA1 Message Date
Richard Dodd 21573905e8 Start work on a TodoMVC implementation in xilem.
I didn't make much progress because some basic widgets are missing, but I did find the experience similar to the DOM version and it would be easy to do both while remaining in the same register.
2023-07-05 20:48:32 +01:00
Raph Levien 1fd1ce7885 Add wasm DOM implementation for xilem.
I'm doing all the work in a single commit so it's easier to rebase.

Below is a list of the individual changes I did

 - Squash prev commits
 - Remove top-level action handler (use Adapt instead).
 - Type events in the same way as elements (could also do attributes the
   same)
 - Allow users to avoid compiling the typed html/attributes/events
 - Use more specific types for mouse events from web_sys
 - change "click" from PointerEvent to MouseEvent (PointerEvent caused a
   panic on `dyn_into().unwrap()`)
2023-06-25 19:42:02 +01:00