pub trait NotifiableComponentFactory<T: Notifiable> {
    // Required method
    fn component(
        &self,
        notification: T,
        onclick: Callback<MouseEvent>,
        onenter: Callback<MouseEvent>,
        onleave: Callback<MouseEvent>
    ) -> Html;
}
Expand description

This trait provides an interface for the notification component factory.

This trait implementors are used be yew-notifications for notification components rendering.

Required Methods§

source

fn component( &self, notification: T, onclick: Callback<MouseEvent>, onenter: Callback<MouseEvent>, onleave: Callback<MouseEvent> ) -> Html

Creates a new notification component that can be rendered in yew.

Implementors§