Trait OnAttribute
pub trait OnAttribute<E, F> {
type Output;
// Required method
fn on(self, event: E, cb: F) -> Self::Output;
}
Expand description
Adds an event listener to an element definition.
Required Associated Types§
type Output
type Output
The type of the element with the event listener added.