Skip to main content

Module external

Module external 

Source
Expand description

Drops arriving from outside your app - selected text, links dragged from another tab, content from other applications - plus typed serde payloads over the DataTransfer bridge for interop scenarios the Rust-side context can’t reach.

For drags between elements of your own app, prefer the core context: it carries any Clone type with zero serialization. Reach for this module when the browser is the transport.

Re-exports§

pub use ExternalDropZone_completions::Component::ExternalDropZone;

Modules§

typed
Typed payloads over the native DataTransfer (JSON-encoded under application/json, wire-compatible with dioxus-html’s own store/retrieve). Useful when the browser must carry the data - e.g. dragging between two separate Dioxus apps or windows - at the cost of requiring Serialize/Deserialize.

Structs§

ExternalDrop
A decoded external drop.
ExternalDropZoneProps
Properties for the ExternalDropZone component.

Enums§

ExternalPayload
Content the browser handed us from an external drag, best-effort decoded in order of specificity.

Functions§

ExternalDropZone
A zone accepting drops that originate outside the app.
classify
Decode an incoming drag event’s DataTransfer into ExternalPayloads.