Struct dominator::DomBuilder [−][src]
pub struct DomBuilder<A> { /* fields omitted */ }
Implementations
pub fn global_event<T, F>(self, listener: F) -> Self where
T: StaticEvent,
F: FnMut(T) + 'static,
pub fn global_event_preventable<T, F>(self, listener: F) -> Self where
T: StaticEvent,
F: FnMut(T) + 'static,
👎 Deprecated since 0.5.1:
Use the with_node macro instead
pub fn prop_signal<B, C, D>(self, name: B, value: D) -> Self where
B: MultiStr + 'static,
C: Into<JsValue>,
D: Signal<Item = C> + 'static,
The same as the prop_signal
method.
pub fn event_preventable<T, F>(self, listener: F) -> Self where
T: StaticEvent,
F: FnMut(T) + 'static,
pub fn text_signal<B, C>(self, value: C) -> Self where
B: AsStr,
C: Signal<Item = B> + 'static,
pub fn children_signal_vec<B>(self, children: B) -> Self where
B: SignalVec<Item = Dom> + 'static,
pub fn attr_signal<B, C, D, E>(self, name: B, value: E) -> Self where
B: MultiStr + 'static,
C: AsStr,
D: OptionStr<Output = C>,
E: Signal<Item = D> + 'static,
The same as the attr_signal
method.
pub fn attr_ns_signal<B, C, D, E>(
self,
namespace: &str,
name: B,
value: E
) -> Self where
B: MultiStr + 'static,
C: AsStr,
D: OptionStr<Output = C>,
E: Signal<Item = D> + 'static,
The same as the attr_ns_signal
method.
pub fn class_signal<B, C>(self, name: B, value: C) -> Self where
B: MultiStr + 'static,
C: Signal<Item = bool> + 'static,
pub fn scroll_left_signal<B>(self, signal: B) -> Self where
B: Signal<Item = Option<i32>> + 'static,
pub fn scroll_top_signal<B>(self, signal: B) -> Self where
B: Signal<Item = Option<i32>> + 'static,
pub fn style_signal<B, C, D, E>(self, name: B, value: E) -> Self where
B: MultiStr + 'static,
C: MultiStr,
D: OptionStr<Output = C>,
E: Signal<Item = D> + 'static,
pub fn style_important_signal<B, C, D, E>(self, name: B, value: E) -> Self where
B: MultiStr + 'static,
C: MultiStr,
D: OptionStr<Output = C>,
E: Signal<Item = D> + 'static,
Auto Trait Implementations
impl<A> !RefUnwindSafe for DomBuilder<A>
impl<A> !Send for DomBuilder<A>
impl<A> !Sync for DomBuilder<A>
impl<A> Unpin for DomBuilder<A> where
A: Unpin,
impl<A> !UnwindSafe for DomBuilder<A>