Skip to main content

FileDropTarget

Function FileDropTarget 

Source
pub fn FileDropTarget(_: FileDropTargetProps) -> Element
Expand description

A place files may be dropped.

A widget rather than a property on every container, because willingness has to be absent by default and a handler cannot be: a listener is attached whether or not a screen supplied one, so four containers each grew three records for saying nothing. Being this widget is the willingness, and nothing else in the tree carries any of it.

Desktop only in effect. A phone has no notion of letting a file go over a window, so the events never arrive there and the same screen compiles and runs unchanged.

ยงProps

For details, see the props struct definition.