pub struct DomBuilder<A> { /* private fields */ }
Implementations§
Source§impl<A> DomBuilder<A>where
A: JsCast,
impl<A> DomBuilder<A>where
A: JsCast,
Source§impl<A> DomBuilder<A>
impl<A> DomBuilder<A>
pub fn new(value: A) -> Self
pub fn global_event_with_options<T, F>(
self,
options: &EventOptions,
listener: F,
) -> Selfwhere
T: StaticEvent,
F: FnMut(T) + 'static,
pub fn global_event<T, F>(self, listener: F) -> Selfwhere
T: StaticEvent,
F: FnMut(T) + 'static,
pub fn global_event_preventable<T, F>(self, listener: F) -> Selfwhere
T: StaticEvent,
F: FnMut(T) + 'static,
👎Deprecated since 0.5.21: Use global_event_with_options instead
pub fn future<F>(self, future: F) -> Self
pub fn apply<F>(self, f: F) -> Selfwhere
F: FnOnce(Self) -> Self,
pub fn apply_if<F>(self, test: bool, f: F) -> Selfwhere
F: FnOnce(Self) -> Self,
Source§impl<A> DomBuilder<A>where
A: Clone,
impl<A> DomBuilder<A>where
A: Clone,
pub fn with_element<B, F>(self, f: F) -> Bwhere
F: FnOnce(Self, A) -> B,
👎Deprecated since 0.5.1: Use the with_node macro instead
pub fn before_inserted<F>(self, f: F) -> Selfwhere
F: FnOnce(A),
👎Deprecated since 0.5.20: Use the with_node macro instead
Source§impl<A> DomBuilder<A>where
A: Clone + 'static,
impl<A> DomBuilder<A>where
A: Clone + 'static,
pub fn after_inserted<F>(self, f: F) -> Selfwhere
F: FnOnce(A) + 'static,
pub fn after_removed<F>(self, f: F) -> Selfwhere
F: FnOnce(A) + 'static,
Source§impl<A> DomBuilder<A>
impl<A> DomBuilder<A>
Source§impl<A> DomBuilder<A>
impl<A> DomBuilder<A>
pub fn prop_signal<B, C, D>(self, name: B, value: D) -> Self
Sourcepub fn property_signal<B, C, D>(self, name: B, value: D) -> Self
pub fn property_signal<B, C, D>(self, name: B, value: D) -> Self
The same as the prop_signal
method.
Source§impl<A> DomBuilder<A>where
A: AsRef<EventTarget>,
impl<A> DomBuilder<A>where
A: AsRef<EventTarget>,
pub fn event_with_options<T, F>(
self,
options: &EventOptions,
listener: F,
) -> Selfwhere
T: StaticEvent,
F: FnMut(T) + 'static,
pub fn event<T, F>(self, listener: F) -> Selfwhere
T: StaticEvent,
F: FnMut(T) + 'static,
pub fn event_preventable<T, F>(self, listener: F) -> Selfwhere
T: StaticEvent,
F: FnMut(T) + 'static,
👎Deprecated since 0.5.21: Use event_with_options instead
Source§impl<A> DomBuilder<A>
impl<A> DomBuilder<A>
pub fn text(self, value: &str) -> Self
pub fn text_signal<B, C>(self, value: C) -> Self
pub fn child<B: BorrowMut<Dom>>(self, child: B) -> Self
pub fn child_signal<B>(self, child: B) -> Self
pub fn children<B: BorrowMut<Dom>, C: IntoIterator<Item = B>>( self, children: C, ) -> Self
pub fn children_signal_vec<B>(self, children: B) -> Self
Source§impl<A> DomBuilder<A>
impl<A> DomBuilder<A>
pub fn attr<B>(self, name: B, value: &str) -> Selfwhere
B: MultiStr,
Sourcepub fn attribute<B>(self, name: B, value: &str) -> Selfwhere
B: MultiStr,
pub fn attribute<B>(self, name: B, value: &str) -> Selfwhere
B: MultiStr,
The same as the attr
method.
pub fn attr_ns<B>(self, namespace: &str, name: B, value: &str) -> Selfwhere
B: MultiStr,
Sourcepub fn attribute_namespace<B>(
self,
namespace: &str,
name: B,
value: &str,
) -> Selfwhere
B: MultiStr,
pub fn attribute_namespace<B>(
self,
namespace: &str,
name: B,
value: &str,
) -> Selfwhere
B: MultiStr,
The same as the attr_ns
method.
pub fn class<B>(self, name: B) -> Selfwhere
B: MultiStr,
pub fn visible(self, value: bool) -> Self
Source§impl<A> DomBuilder<A>
impl<A> DomBuilder<A>
pub fn attr_signal<B, C, D, E>(self, name: B, value: E) -> Self
Sourcepub fn attribute_signal<B, C, D, E>(self, name: B, value: E) -> Self
pub fn attribute_signal<B, C, D, E>(self, name: B, value: E) -> Self
The same as the attr_signal
method.
pub fn attr_ns_signal<B, C, D, E>( self, namespace: &str, name: B, value: E, ) -> Self
Sourcepub fn attribute_namespace_signal<B, C, D, E>(
self,
namespace: &str,
name: B,
value: E,
) -> Self
pub fn attribute_namespace_signal<B, C, D, E>( self, namespace: &str, name: B, value: E, ) -> Self
The same as the attr_ns_signal
method.
pub fn class_signal<B, C>(self, name: B, value: C) -> Self
pub fn visible_signal<B>(self, value: B) -> Self
pub fn scroll_left_signal<B>(self, signal: B) -> Self
pub fn scroll_top_signal<B>(self, signal: B) -> Self
Source§impl<A> DomBuilder<A>where
A: AsRef<HtmlElement>,
impl<A> DomBuilder<A>where
A: AsRef<HtmlElement>,
Source§impl<A> DomBuilder<A>where
A: AsRef<HtmlElement>,
impl<A> DomBuilder<A>where
A: AsRef<HtmlElement>,
pub fn style_signal<B, C, D, E>(self, name: B, value: E) -> Self
pub fn style_important_signal<B, C, D, E>(self, name: B, value: E) -> Self
pub fn style_unchecked_signal<B, C, D, E>(self, name: B, value: E) -> Self
pub fn focused(self, value: bool) -> Self
pub fn focused_signal<B>(self, value: B) -> Self
Auto Trait Implementations§
impl<A> Freeze for DomBuilder<A>where
A: Freeze,
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more