Struct dominator::DomBuilder [−][src]
#[must_use]pub struct DomBuilder<A> { /* fields omitted */ }
Implementations
impl<A> DomBuilder<A> where
A: JsCast,
[src]
impl<A> DomBuilder<A> where
A: JsCast,
[src]impl<A> DomBuilder<A>
[src]
impl<A> DomBuilder<A>
[src]pub fn new(value: A) -> Self
[src]
pub fn global_event<T, F>(self, listener: F) -> Self where
T: StaticEvent,
F: FnMut(T) + 'static,
[src]
T: StaticEvent,
F: FnMut(T) + 'static,
pub fn global_event_preventable<T, F>(self, listener: F) -> Self where
T: StaticEvent,
F: FnMut(T) + 'static,
[src]
T: StaticEvent,
F: FnMut(T) + 'static,
pub fn future<F>(self, future: F) -> Self where
F: Future<Output = ()> + 'static,
[src]
F: Future<Output = ()> + 'static,
pub fn apply<F>(self, f: F) -> Self where
F: FnOnce(Self) -> Self,
[src]
F: FnOnce(Self) -> Self,
pub fn apply_if<F>(self, test: bool, f: F) -> Self where
F: FnOnce(Self) -> Self,
[src]
F: FnOnce(Self) -> Self,
impl<A> DomBuilder<A> where
A: Clone,
[src]
impl<A> DomBuilder<A> where
A: Clone,
[src]pub fn with_element<B, F>(self, f: F) -> B where
F: FnOnce(Self, A) -> B,
[src]
F: FnOnce(Self, A) -> B,
👎 Deprecated since 0.5.1:
Use the with_node macro instead
pub fn before_inserted<F>(self, f: F) -> Self where
F: FnOnce(A),
[src]
F: FnOnce(A),
impl<A> DomBuilder<A> where
A: Clone + 'static,
[src]
impl<A> DomBuilder<A> where
A: Clone + 'static,
[src]pub fn after_inserted<F>(self, f: F) -> Self where
F: FnOnce(A) + 'static,
[src]
F: FnOnce(A) + 'static,
pub fn after_removed<F>(self, f: F) -> Self where
F: FnOnce(A) + 'static,
[src]
F: FnOnce(A) + 'static,
impl<A> DomBuilder<A> where
A: AsRef<JsValue>,
[src]
impl<A> DomBuilder<A> where
A: AsRef<JsValue>,
[src]impl<A> DomBuilder<A> where
A: AsRef<JsValue>,
[src]
impl<A> DomBuilder<A> where
A: AsRef<JsValue>,
[src]impl<A> DomBuilder<A> where
A: AsRef<EventTarget>,
[src]
impl<A> DomBuilder<A> where
A: AsRef<EventTarget>,
[src]pub fn event<T, F>(self, listener: F) -> Self where
T: StaticEvent,
F: FnMut(T) + 'static,
[src]
T: StaticEvent,
F: FnMut(T) + 'static,
pub fn event_preventable<T, F>(self, listener: F) -> Self where
T: StaticEvent,
F: FnMut(T) + 'static,
[src]
T: StaticEvent,
F: FnMut(T) + 'static,
impl<A> DomBuilder<A> where
A: AsRef<Node>,
[src]
impl<A> DomBuilder<A> where
A: AsRef<Node>,
[src]pub fn child<B: BorrowMut<Dom>>(self, child: B) -> Self
[src]
pub fn children<B: BorrowMut<Dom>, C: IntoIterator<Item = B>>(
self,
children: C
) -> Self
[src]
self,
children: C
) -> Self
pub fn text(self, value: &str) -> Self
[src]
pub fn text_signal<B, C>(self, value: C) -> Self where
B: AsStr,
C: Signal<Item = B> + 'static,
[src]
B: AsStr,
C: Signal<Item = B> + 'static,
pub fn children_signal_vec<B>(self, children: B) -> Self where
B: SignalVec<Item = Dom> + 'static,
[src]
B: SignalVec<Item = Dom> + 'static,
pub fn child_signal<B>(self, child: B) -> Self where
B: Signal<Item = Option<Dom>> + 'static,
[src]
B: Signal<Item = Option<Dom>> + 'static,
impl<A> DomBuilder<A> where
A: AsRef<Element>,
[src]
impl<A> DomBuilder<A> where
A: AsRef<Element>,
[src]impl<A> DomBuilder<A> where
A: AsRef<Element>,
[src]
impl<A> DomBuilder<A> where
A: AsRef<Element>,
[src]pub fn attribute_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,
[src]
B: MultiStr + 'static,
C: AsStr,
D: OptionStr<Output = C>,
E: Signal<Item = D> + 'static,
pub fn attribute_namespace_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,
[src]
self,
namespace: &str,
name: B,
value: E
) -> Self where
B: MultiStr + 'static,
C: AsStr,
D: OptionStr<Output = C>,
E: Signal<Item = D> + 'static,
pub fn class_signal<B, C>(self, name: B, value: C) -> Self where
B: MultiStr + 'static,
C: Signal<Item = bool> + 'static,
[src]
B: MultiStr + 'static,
C: Signal<Item = bool> + 'static,
pub fn visible_signal<B>(self, value: B) -> Self where
B: Signal<Item = bool> + 'static,
[src]
B: Signal<Item = bool> + 'static,
pub fn scroll_left_signal<B>(self, signal: B) -> Self where
B: Signal<Item = Option<i32>> + 'static,
[src]
B: Signal<Item = Option<i32>> + 'static,
pub fn scroll_top_signal<B>(self, signal: B) -> Self where
B: Signal<Item = Option<i32>> + 'static,
[src]
B: Signal<Item = Option<i32>> + 'static,
impl<A> DomBuilder<A> where
A: AsRef<HtmlElement>,
[src]
impl<A> DomBuilder<A> where
A: AsRef<HtmlElement>,
[src]impl<A> DomBuilder<A> where
A: AsRef<HtmlElement>,
[src]
impl<A> DomBuilder<A> where
A: AsRef<HtmlElement>,
[src]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,
[src]
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,
[src]
B: MultiStr + 'static,
C: MultiStr,
D: OptionStr<Output = C>,
E: Signal<Item = D> + 'static,
pub fn focused(self, value: bool) -> Self
[src]
pub fn focused_signal<B>(self, value: B) -> Self where
B: Signal<Item = bool> + 'static,
[src]
B: Signal<Item = bool> + 'static,
Auto Trait Implementations
impl<A> !RefUnwindSafe for DomBuilder<A>
impl<A> !RefUnwindSafe for DomBuilder<A>
impl<A> !Send for DomBuilder<A>
impl<A> !Send for DomBuilder<A>
impl<A> !Sync for DomBuilder<A>
impl<A> !Sync for DomBuilder<A>
impl<A> Unpin for DomBuilder<A> where
A: Unpin,
impl<A> Unpin for DomBuilder<A> where
A: Unpin,
impl<A> !UnwindSafe for DomBuilder<A>
impl<A> !UnwindSafe for DomBuilder<A>