[][src]Struct dominator::DomBuilder

#[must_use]pub struct DomBuilder<A> { /* fields omitted */ }

Implementations

impl<A> DomBuilder<A> where
    A: JsCast
[src]

pub fn new_html(name: &str) -> Self[src]

pub fn new_svg(name: &str) -> Self[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]

pub fn global_event_preventable<T, F>(self, listener: F) -> Self where
    T: StaticEvent,
    F: FnMut(T) + 'static, 
[src]

pub fn future<F>(self, future: F) -> Self where
    F: Future<Output = ()> + 'static, 
[src]

pub fn apply<F>(self, f: F) -> Self where
    F: FnOnce(Self) -> Self, 
[src]

pub fn apply_if<F>(self, test: bool, f: F) -> Self where
    F: FnOnce(Self) -> Self, 
[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]

👎 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]

impl<A> DomBuilder<A> where
    A: Clone + 'static, 
[src]

pub fn after_inserted<F>(self, f: F) -> Self where
    F: FnOnce(A) + 'static, 
[src]

pub fn after_removed<F>(self, f: F) -> Self where
    F: FnOnce(A) + 'static, 
[src]

impl<A> DomBuilder<A> where
    A: Into<Node>, 
[src]

pub fn into_dom(self) -> Dom[src]

impl<A> DomBuilder<A> where
    A: AsRef<JsValue>, 
[src]

pub fn property<B, C>(self, name: B, value: C) -> Self where
    B: MultiStr,
    C: Into<JsValue>, 
[src]

impl<A> DomBuilder<A> where
    A: AsRef<JsValue>, 
[src]

pub fn property_signal<B, C, D>(self, name: B, value: D) -> Self where
    B: MultiStr + 'static,
    C: Into<JsValue>,
    D: Signal<Item = C> + 'static, 
[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]

pub fn event_preventable<T, F>(self, listener: F) -> Self where
    T: StaticEvent,
    F: FnMut(T) + 'static, 
[src]

impl<A> DomBuilder<A> where
    A: AsRef<Node>, 
[src]

pub fn child(self, child: Dom) -> Self[src]

pub fn children<B: BorrowMut<Dom>, C: IntoIterator<Item = B>>(
    self,
    children: C
) -> Self
[src]

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]

pub fn children_signal_vec<B>(self, children: B) -> Self where
    B: SignalVec<Item = Dom> + 'static, 
[src]

pub fn child_signal<B>(self, child: B) -> Self where
    B: Signal<Item = Option<Dom>> + 'static, 
[src]

impl<A> DomBuilder<A> where
    A: AsRef<Element>, 
[src]

pub fn attribute<B>(self, name: B, value: &str) -> Self where
    B: MultiStr
[src]

pub fn attribute_namespace<B>(
    self,
    namespace: &str,
    name: B,
    value: &str
) -> Self where
    B: MultiStr
[src]

pub fn class<B>(self, name: B) -> Self where
    B: MultiStr
[src]

pub fn visible(self, value: bool) -> Self[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]

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]

pub fn class_signal<B, C>(self, name: B, value: C) -> Self where
    B: MultiStr + 'static,
    C: Signal<Item = bool> + 'static, 
[src]

pub fn visible_signal<B>(self, value: B) -> Self where
    B: Signal<Item = bool> + 'static, 
[src]

pub fn scroll_left_signal<B>(self, signal: B) -> Self where
    B: Signal<Item = Option<i32>> + 'static, 
[src]

pub fn scroll_top_signal<B>(self, signal: B) -> Self where
    B: Signal<Item = Option<i32>> + 'static, 
[src]

impl<A> DomBuilder<A> where
    A: AsRef<HtmlElement>, 
[src]

pub fn style<B, C>(self, name: B, value: C) -> Self where
    B: MultiStr,
    C: MultiStr
[src]

pub fn style_important<B, C>(self, name: B, value: C) -> Self where
    B: MultiStr,
    C: MultiStr
[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]

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]

pub fn focused(self, value: bool) -> Self[src]

pub fn focused_signal<B>(self, value: B) -> Self where
    B: Signal<Item = bool> + 'static, 
[src]

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>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.