Function freya_elements::elements::onglobalfilehover

source ·
pub fn onglobalfilehover<__Marker>(
    _f: impl SuperInto<EventHandler<Event<FileData>>, __Marker>
) -> Attribute
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:?}")
        }
    )
}