Skip to main content

DomOutput

Trait DomOutput 

Source
pub trait DomOutput {
    // Required methods
    fn create_element(self) -> DomElement;
    fn render(self, element: DomElement);
}
Expand description

A component output function’s DOM element output.

Required Methods§

Source

fn create_element(self) -> DomElement

Create the DOM element.

Source

fn render(self, element: DomElement)

Rerender the DOM element.

Implementors§

Source§

impl<CreateFn, RenderFn> DomOutput for DomElementCreateAndRender<CreateFn, RenderFn>
where CreateFn: FnOnce() -> DomElement, RenderFn: FnOnce(DomElement),