Function freya::prelude::dioxus_elements::events::onpointerover
source · pub fn onpointerover<'a>(
_cx: &'a ScopeState,
_f: impl FnMut(Event<PointerData>) + 'a
) -> Attribute<'a>
Expand description
The pointerover
event will fire when the user hovers/touches over an element.
Event Data: PointerData
Example:
fn app(cx: Scope) -> Element {
render!(
rect {
width: "100",
height: "100",
background: "red",
onpointerover: |_| println!("Hovering or touching!")
}
)
}