pub trait ToHtmlElement {
    // Required method
    fn to_leptos_element(self, cx: Scope) -> HtmlElement<AnyElement>;
}
Expand description

Trait for converting any type which impl AsRef<web_sys::Element> to HtmlElement.

Required Methods§

source

fn to_leptos_element(self, cx: Scope) -> HtmlElement<AnyElement>

Converts the type to HtmlElement.

Implementors§

source§

impl<T> ToHtmlElement for Twhere T: AsRef<Element>,