pub struct Element { /* private fields */ }Implementations§
Source§impl Element
impl Element
pub fn new(tag: &'static str) -> Self
pub fn tag(&self) -> &'static str
pub fn attributes(&self) -> &[Attribute]
pub fn get_children(&self) -> &[Node]
pub fn class(self, class: &str) -> Self
pub fn class_reactive(self, class: impl IntoReactiveString) -> Self
pub fn visible_reactive(self, visible: impl IntoReactiveBool) -> Self
pub fn id(self, id: &str) -> Self
pub fn style(self, style: &str) -> Self
pub fn styled(self, style: Style) -> Self
pub fn attr(self, name: &str, value: &str) -> Self
pub fn href(self, href: &str) -> Self
pub fn src(self, src: &str) -> Self
pub fn alt(self, alt: &str) -> Self
pub fn type_(self, type_value: &str) -> Self
pub fn input_type(self, input_type: InputType) -> Self
pub fn target(self, target: LinkTarget) -> Self
pub fn method(self, method: FormMethod) -> Self
pub fn name(self, name: &str) -> Self
pub fn value(self, value: &str) -> Self
pub fn value_reactive(self, value: impl IntoReactiveString) -> Self
pub fn bind_value( self, read: ReadSignal<String>, write: WriteSignal<String>, ) -> Self
pub fn placeholder(self, placeholder: &str) -> Self
pub fn disabled(self, disabled: bool) -> Self
pub fn text(self, text: impl Into<String>) -> Self
pub fn text_reactive(self, text: impl IntoReactiveString) -> Self
pub fn child(self, child: impl IntoNode) -> Self
pub fn children<I, C>(self, children: I) -> Selfwhere
I: IntoIterator<Item = C>,
C: IntoNode,
pub fn on_click<F>(self, handler: F) -> Self
pub fn on_input<F>(self, handler: F) -> Self
pub fn on_submit<F>(self, handler: F) -> Self
pub fn on_change<F>(self, handler: F) -> Self
pub fn show_when(self, condition: impl IntoReactiveBool) -> Node
pub fn show_when_else( self, condition: impl IntoReactiveBool, else_node: impl IntoNode, ) -> Node
pub fn has_class(&self, class_name: &str) -> bool
pub fn event_handlers(&self) -> &[EventHandler]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Element
impl !RefUnwindSafe for Element
impl !Send for Element
impl !Sync for Element
impl Unpin for Element
impl !UnwindSafe for Element
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