Function freya::prelude::dioxus_elements::events::onglobalfilehover

pub fn onglobalfilehover<E, T>(
    _f: impl FnMut(Event<FileData>) -> E + 'static,
) -> Attribute
where E: EventReturn<T>,
Expand description

The onglobalfilehover event fires when the user hovers a file over the window.

Event Data: FileData

ยงExample

fn app() -> Element {
    rsx!(
        rect {
            width: "100%",
            height: "100%",
            background: "black",
            onglobalfilehover: |e| println!("File hover: {e:?}")
        }
    )
}