pub fn MultiWindowProvider<T: Clone + PartialEq + 'static>(
_: MultiWindowProviderProps<T>,
) -> ElementExpand description
Wire one dioxus-desktop window into a DndWorld.
This component structurally enforces the ordering the desktop adapter
needs: its geometry feed is mounted above DndProvider, and its
DragBridge is mounted inside the provider after the window joins.
Keep app-styled pieces such as DragOverlay and LiveRegion among the
children.
Mounting without a DndWorld<T> in context emits one warning and leaves
the provider with its normal isolated, single-window state. Nesting this
component below another same-payload DndProvider<T> also warns: replace
the old provider rather than wrapping it, because only the outer provider
may join a world. Create the world with crate::core::use_dnd_world and
seed spawned windows with DndWorld::vdom to avoid the fallback.
ยงProps
For details, see the props struct definition.
phantom:std::marker::PhantomData<T>Internal marker; never set this.
dir:DirectionLayout direction forwarded to
DndProvider.children:Element