Struct pinwheel::prelude::Element [−][src]
pub struct Element { /* fields omitted */ }
Implementations
pub fn future<F>(self, _f: impl FnOnce(&Element) -> F) -> Element where
F: 'static + Future<Output = ()>,
pub fn attribute<T>(
self,
name: impl Into<Cow<'static, str>>,
value: T
) -> Element where
T: IntoAttributeValue,
pub fn attribute_signal<T, S>(
self,
name: impl Into<Cow<'static, str>>,
value: S
) -> Element where
T: IntoAttributeValue,
S: 'static + Unpin + Signal<Item = T>,
pub fn class_signal<S, T>(self, value: S) -> Element where
S: 'static + Unpin + Signal<Item = T>,
T: IntoOptionStringValue,
pub fn style<T>(self, name: impl Into<Cow<'static, str>>, value: T) -> Element where
T: IntoOptionStringValue,
pub fn style_signal<S, T>(
self,
name: impl Into<Cow<'static, str>>,
value: S
) -> Element where
S: 'static + Unpin + Signal<Item = T>,
T: IntoOptionStringValue,
pub fn event(
self,
_name: impl Into<Cow<'static, str>>,
_closure: impl 'static + FnMut(JsValue)
) -> Element
pub fn children<T, I>(self, children: I) -> Element where
T: Into<Node>,
I: IntoIterator<Item = T>,
pub fn child_signal<T, S>(self, signal: S) -> Element where
T: Into<Node>,
S: 'static + Unpin + Signal<Item = T>,
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Element
impl UnwindSafe for Element