pub fn onmouseleave<E, T>( _f: impl FnMut(Event<MouseData>) -> E + 'static ) -> Attributewhere E: EventReturn<T>,
The mouseleave event fires when the user stops hovering an element.
mouseleave
Event Data: MouseData
MouseData
fn app() -> Element { rsx!( rect { width: "100", height: "100", background: "red", onmouseleave: |_| println!("Stopped hovering!") } ) }