Trait DirectiveAttribute

pub trait DirectiveAttribute<T, P, D>
where D: IntoDirective<T, P>,
{ type Output; // Required method fn directive(self, handler: D, param: P) -> Self::Output; }
Expand description

Adds a directive to the element, which runs some custom logic in the browser when the element is created or hydrated.

Required Associated Types§

type Output

The type of the element with the directive added.

Required Methods§

fn directive(self, handler: D, param: P) -> Self::Output

Adds a directive to the element, which runs some custom logic in the browser when the element is created or hydrated.

Implementors§

§

impl<V, T, P, D> DirectiveAttribute<T, P, D> for V
where V: AddAnyAttr, D: IntoDirective<T, P>, P: Clone + 'static, T: 'static,

§

type Output = <V as AddAnyAttr>::Output<Directive<T, D, P>>