pub fn prop<N, Va>(&self, name: N, property: Va) -> &Self
    where
        N: AsRef<str>,
        Va: Into<JsValue>,
    {
        self.element.set_property(name.as_ref(), &property.into());

        self
    }
/// Set a property on the node.
///
/// # Example
/// ```
/// # use sycamore::prelude::*;
/// # use sycamore::builder::html::*;
/// # fn _test<G: GenericNode>() -> View<G> {
/// input().prop("value", "I am the value set.").build()
/// # }
/// ```
Set a property on the node.
Set a property on the node .
pub fn prop<N, Va>(&self, name: N, property: Va) -> &Self
    where
        N: AsRef<str>,
        Va: Into<JsValue>,
    {
        self.element.set_property(name.as_ref(), &property.into());
        self
    }
pub fn prop < N , Va > ( & self , name : N , property : Va ) -> & Self where N : AsRef < str > , Va : Into < JsValue > , { self . element . set_property ( name . as_ref ( ) , & property . into ( ) ) ; self }
Set a property on the node.
Set a property on the node .
&self
name
N
property
Va
example
None
use sycamore::prelude::*;
None
use sycamore::builder::html::*;
None
fn _test<g: genericnode>() -> view<g> {
input().prop("value", "I am the value set.").build()
input () . prop ( " value " " I am the value set . " ) . build ()
}
None