Skip to main content

DirectiveAttribute

Trait DirectiveAttribute 

Source
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§

Source

type Output

The type of the element with the directive added.

Required Methods§

Source

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§

Source§

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

Source§

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