Skip to main content

PropAttribute

Trait PropAttribute 

Source
pub trait PropAttribute<K, P>
where P: IntoProperty,
{ type Output; // Required method fn prop(self, key: K, value: P) -> Self::Output; }
Expand description

Adds an attribute that modifies the DOM properties.

Required Associated Types§

Source

type Output

The type of the element with the new attribute added.

Required Methods§

Source

fn prop(self, key: K, value: P) -> Self::Output

Adds a DOM property to an element.

Implementors§

Source§

impl<E, At, Ch, K, P> PropAttribute<K, P> for HtmlElement<E, At, Ch>
where E: ElementType + Send, At: Attribute + Send, Ch: RenderHtml + Send, K: AsRef<str> + Send, P: IntoProperty,

Source§

type Output = <HtmlElement<E, At, Ch> as AddAnyAttr>::Output<Property<K, P>>