Trait StyleAttribute

pub trait StyleAttribute<S>
where S: IntoStyle,
{ type Output; // Required method fn style(self, value: S) -> Self::Output; }
Expand description

Adds an attribute that modifies the CSS styles.

Required Associated Types§

type Output

The type of the element with the new attribute added.

Required Methods§

fn style(self, value: S) -> Self::Output

Adds a CSS style to an element.

Implementors§

§

impl<E, At, Ch, S> StyleAttribute<S> for HtmlElement<E, At, Ch>
where E: ElementType + Send, At: Attribute + Send, Ch: RenderHtml + Send, S: IntoStyle,

§

type Output = <HtmlElement<E, At, Ch> as AddAnyAttr>::Output<Style<S>>