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.
pub trait OnAttribute<E, F> {
type Output;
// Required method
fn on(self, event: E, cb: F) -> Self::Output;
}Adds an event listener to an element definition.