pub type PointerEvent = Event<PointerData>;
struct PointerEvent {
pub data: Rc<PointerData, Global>,
/* private fields */
}
The data associated with this event
👎Deprecated: use stop_propagation instead
Prevent this event from continuing to bubble up the tree to parent elements.
ⓘrsx! {
button {
onclick: move |evt: Event<MouseData>| {
evt.cancel_bubble();
}
}
}
Prevent this event from continuing to bubble up the tree to parent elements.
ⓘrsx! {
button {
onclick: move |evt: Event<MouseData>| {
evt.stop_propagation();
}
}
}
Get a reference to the inner data from this event
ⓘrsx! {
button {
onclick: move |evt: Event<MouseData>| {
let data = evt.inner.clone();
cx.spawn(async move {
println!("{:?}", data);
});
}
}
}
👎Deprecated: use stop_propagation instead
Prevent this event from continuing to bubble up the tree to parent elements.
ⓘrsx! {
button {
onclick: move |evt: Event<MouseData>| {
evt.cancel_bubble();
}
}
}
Prevent this event from continuing to bubble up the tree to parent elements.
ⓘrsx! {
button {
onclick: move |evt: Event<MouseData>| {
evt.stop_propagation();
}
}
}
Get a reference to the inner data from this event
ⓘrsx! {
button {
onclick: move |evt: Event<MouseData>| {
let data = evt.inner.clone();
cx.spawn(async move {
println!("{:?}", data);
});
}
}
}
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
The resulting type after dereferencing.
Dereferences the value.