Trait leptos_dom::html::ToHtmlElement
source · 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§
sourcefn to_leptos_element(self, cx: Scope) -> HtmlElement<AnyElement>
fn to_leptos_element(self, cx: Scope) -> HtmlElement<AnyElement>
Converts the type to HtmlElement
.