Skip to main content

ExternalDropZone

Function ExternalDropZone 

Source
pub fn ExternalDropZone(_: ExternalDropZoneProps) -> Element
Expand description

A zone accepting drops that originate outside the app.

While a drag hovers the zone the div carries data-over="true" (absent otherwise) for styling without on_hover wiring.

ยงProps

For details, see the props struct definition.

  • on_drop : EventHandler<ExternalDrop>
  • on_hover : Option<EventHandler<bool>>

    Fired with true/false on hover enter/leave.

  • attributes : Vec<Attribute>
  • children : Element