[][src]Trait mogwai::view::interface::StyleView

pub trait StyleView {
    pub fn style<E: Into<Effect<String>>>(&mut self, name: &str, eff: E);
}

StyleViews can describe themselves using CSS style key value pairs.

Required methods

pub fn style<E: Into<Effect<String>>>(&mut self, name: &str, eff: E)[src]

Set a CSS property in the style attribute of the view being built. If eff contains a Receiver, messages received will updated the style's value.

Loading content...

Implementors

impl<T: IsDomNode + AsRef<HtmlElement>> StyleView for ViewBuilder<T>[src]

impl<T: IsDomNode + AsRef<HtmlElement>> StyleView for View<T>[src]

Loading content...