dioxus/packages/desktop
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
..
architecure Improve inline docs (#2460) 2024-06-06 18:15:17 -07:00
examples Make use_future take an impl FnMut + 'static, don't include router prelude when we don't need to 2024-01-31 16:33:53 -08:00
headless_tests Fix nested rsx expansion by not using template titles (#2799) 2024-08-13 01:59:04 +00:00
src Add the onresize event handler to Element (#2479) 2024-08-15 01:23:49 +00:00
build.rs Use head elements and new manganis syntax in examples (#2688) 2024-07-25 21:58:00 +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 Desktop (webview)

Crates.io MIT licensed Build Status Discord chat

Website | Guides | API Docs | Chat

Overview

dioxus-desktop provides a webview-based desktop renderer for the Dioxus VirtualDom.

This requires that webview is installed on the target system. WebView is installed by default on macOS and iOS devices, but might not come preinstalled on Windows or Linux devices. To fix these issues, follow the instructions in the guide.

Features

  • Simple, one-line launch for desktop apps
  • Dioxus VirtualDom running on a native thread
  • Full HTML/CSS support via wry and tao
  • Exposed window and Proxy types from tao for direct window manipulation
  • Helpful hooks for accessing the window, WebView, and running javascript.

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.