Struct glory_core::web::widgets::HtmlTextArea
source · pub struct HtmlTextArea(pub Element);Tuple Fields§
§0: ElementImplementations§
source§impl HtmlTextArea
impl HtmlTextArea
sourcepub fn access_key(self, value: impl PropValue + 'static) -> Self
pub fn access_key(self, value: impl PropValue + 'static) -> Self
A shortcut to set property accessKey.
sourcepub fn auto_capitalize(self, value: impl PropValue + 'static) -> Self
pub fn auto_capitalize(self, value: impl PropValue + 'static) -> Self
A shortcut to set property autocapitalize.
sourcepub fn auto_complete(self, value: impl PropValue + 'static) -> Self
pub fn auto_complete(self, value: impl PropValue + 'static) -> Self
A shortcut to set property autocomplete.
sourcepub fn auto_focus(self, value: impl PropValue + 'static) -> Self
pub fn auto_focus(self, value: impl PropValue + 'static) -> Self
A shortcut to set property autofocus.
sourcepub fn default_value(self, value: impl PropValue + 'static) -> Self
pub fn default_value(self, value: impl PropValue + 'static) -> Self
A shortcut to set property defaultValue.
sourcepub fn disabled(self, value: impl PropValue + 'static) -> Self
pub fn disabled(self, value: impl PropValue + 'static) -> Self
A shortcut to set property disabled.
sourcepub fn input_mode(self, value: impl PropValue + 'static) -> Self
pub fn input_mode(self, value: impl PropValue + 'static) -> Self
A shortcut to set property inputMode.
sourcepub fn max_length(self, value: impl PropValue + 'static) -> Self
pub fn max_length(self, value: impl PropValue + 'static) -> Self
A shortcut to set property maxLength.
sourcepub fn min_length(self, value: impl PropValue + 'static) -> Self
pub fn min_length(self, value: impl PropValue + 'static) -> Self
A shortcut to set property minLength.
sourcepub fn placeholder(self, value: impl PropValue + 'static) -> Self
pub fn placeholder(self, value: impl PropValue + 'static) -> Self
A shortcut to set property placeholder.
sourcepub fn read_only(self, value: impl PropValue + 'static) -> Self
pub fn read_only(self, value: impl PropValue + 'static) -> Self
A shortcut to set property readOnly.
sourcepub fn required(self, value: impl PropValue + 'static) -> Self
pub fn required(self, value: impl PropValue + 'static) -> Self
A shortcut to set property required.
sourcepub fn selection_end(self, value: impl PropValue + 'static) -> Self
pub fn selection_end(self, value: impl PropValue + 'static) -> Self
A shortcut to set property selectionEnd.
sourcepub fn selection_start(self, value: impl PropValue + 'static) -> Self
pub fn selection_start(self, value: impl PropValue + 'static) -> Self
A shortcut to set property selectionStart.
sourcepub fn tab_index(self, value: impl PropValue + 'static) -> Self
pub fn tab_index(self, value: impl PropValue + 'static) -> Self
A shortcut to set property tabIndex.
pub fn new() -> HtmlTextArea
pub fn fill(self, filler: impl IntoFiller) -> Self
pub fn then<F>(self, func: F) -> Selfwhere
F: FnOnce(Self) -> Self,
pub fn id<V>(self, value: V) -> Selfwhere
V: AttrValue + 'static,
pub fn class<V>(self, value: V) -> Selfwhere
V: ClassPart + 'static,
pub fn toggle_class<V, C>(self, value: V, cond: C) -> Self
pub fn switch_class<TV, FV, C>(self, tv: TV, fv: FV, cond: C) -> Self
sourcepub fn prop<V>(self, name: impl Into<Cow<'static, str>>, value: V) -> Selfwhere
V: PropValue + 'static,
pub fn prop<V>(self, name: impl Into<Cow<'static, str>>, value: V) -> Selfwhere
V: PropValue + 'static,
Adds an property to this element.
sourcepub fn attr<V>(self, name: impl Into<Cow<'static, str>>, value: V) -> Selfwhere
V: AttrValue + 'static,
pub fn attr<V>(self, name: impl Into<Cow<'static, str>>, value: V) -> Selfwhere
V: AttrValue + 'static,
Adds an attribute to this element.
pub fn text<V>(self, text: V) -> Selfwhere
V: AttrValue + 'static,
sourcepub fn html<V>(self, html: V) -> Selfwhere
V: AttrValue + 'static,
pub fn html<V>(self, html: V) -> Selfwhere
V: AttrValue + 'static,
Sets the inner HTML of this element from the provided string slice.
Security
Be very careful when using this method. Always remember to sanitize the input to avoid a cross-site scripting (XSS) vulnerability.
pub fn node_ref(self, node_ref: &NodeRef<Node>) -> Self
Methods from Deref<Target = Element>§
pub fn node(&self) -> &Node
pub fn add_filler(&mut self, filler: impl IntoFiller)
pub fn is_void(&self) -> bool
pub fn add_id<V>(&mut self, value: V)where
V: AttrValue + 'static,
pub fn add_class<V>(&mut self, value: V)where
V: ClassPart + 'static,
sourcepub fn add_prop<V>(&mut self, name: impl Into<Cow<'static, str>>, value: V)where
V: PropValue + 'static,
pub fn add_prop<V>(&mut self, name: impl Into<Cow<'static, str>>, value: V)where
V: PropValue + 'static,
Adds an property to this element.
sourcepub fn add_attr<V>(&mut self, name: impl Into<Cow<'static, str>>, value: V)where
V: AttrValue + 'static,
pub fn add_attr<V>(&mut self, name: impl Into<Cow<'static, str>>, value: V)where
V: AttrValue + 'static,
Adds an attribute to this element.
sourcepub fn add_event_listener<E: EventDescriptor>(
&self,
_event: E,
_event_handler: impl FnMut(E::EventType) + 'static
)
pub fn add_event_listener<E: EventDescriptor>( &self, _event: E, _event_handler: impl FnMut(E::EventType) + 'static )
Adds an event listener to this element.