dioxus/packages/liveview
ASR-ASU 2f49a89638
Add the onresize event handler to Element (#2479)
* Add the capability to handle resize event for web target

* Add the capability to handle resize event for desktop target

* Return all the sizes, not just the first one

* Fix conversion from platform to generic ResizedData for liveview

* Update the generated interpreter js code base

* Fix clippy warnings

* Fix inconsistent use of block_size and inline_size

* Rename `onresized` event to `onresize`

* Remove the the special-casing logic from the binding logic

* Propagating the resize events using CustomEvent

* Fix case convention in core ts

* revert changes to unified bindings

* Cleanup as suggested

* add a resize example

* Fix desktop resize events

* remove tracing from resize example

* use the raw resize entry so we can downcast on web

* remove unused ResizeEventDetail

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-08-15 01:23:49 +00:00
..
examples Get more axum stuff upgraded to 0.7 2024-02-15 18:59:57 -08:00
src Add the onresize event handler to Element (#2479) 2024-08-15 01:23:49 +00:00
Cargo.toml Synchronous prevent default (#2792) 2024-08-13 11:57:54 -07:00
README.md Fix Links & Add Link Checker (#2769) 2024-08-02 10:46:18 -07:00

Dioxus Liveview

Crates.io MIT licensed Build Status Discord chat

Website | Guides | API Docs | Chat

Overview

dioxus-liveview provides adapters for running the Dioxus VirtualDom over a WebSocket connection.

The current backend frameworks supported include:

  • Axum

Dioxus-LiveView exports some primitives to wire up an app into an existing backend framework.

  • A ThreadPool for spawning the !Send VirtualDom and interacting with it from WebSockets
  • An adapter for transforming various socket types into the LiveViewSocket type
  • The glue to load the interpreter into your app

Contributing

  • Report issues on our issue tracker.
  • Join the discord and ask questions!

License

This project is licensed under the MIT license.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Dioxus by you shall be licensed as MIT without any additional terms or conditions.