pub fn onfiledrop<__Marker>( _f: impl SuperInto<Callback<Event<FileData>>, __Marker> ) -> Attribute
The filedrop event fires when the user drops a file over the element.
filedrop
Event Data: FileData
FileData
fn app() -> Element { rsx!( rect { width: "100%", height: "100%", background: "black", onfiledrop: |e| println!("File dropped: {e:?}") } ) }