Trait rate_ui::widget::Widget[][src]

pub trait Widget: Default + 'static {
    type Event;
    type Tag: Clone + Eq + Hash;
    type Properties: Properties + PartialEq;
    type Meta: Default;
    fn view(&self, ctx: &Context<Self>) -> Html;

    fn init(&mut self, _ctx: &mut Context<Self>) { ... }
fn on_props(&mut self, _ctx: &mut Context<Self>) { ... }
fn on_event(&mut self, _event: Self::Event, _ctx: &mut Context<Self>) { ... }
fn rendered(&mut self, _first: bool) -> Result<(), Error> { ... } }

Associated Types

Required methods

Provided methods

Implementors