pub struct Textarea<'a> {Show 16 fields
pub global: GlobalAttributes<'a>,
pub events: Events<'a>,
pub autocomplete: Cow<'a, str>,
pub cols: Cow<'a, str>,
pub dirname: Cow<'a, str>,
pub disabled: bool,
pub form: Cow<'a, str>,
pub maxlength: Cow<'a, str>,
pub minlength: Cow<'a, str>,
pub name: Cow<'a, str>,
pub placeholder: Cow<'a, str>,
pub readonly: bool,
pub required: bool,
pub rows: Cow<'a, str>,
pub wrap: Cow<'a, str>,
pub children: Vec<Node<'a>>,
}Expand description
A <textarea> element
Fields§
§global: GlobalAttributes<'a>The global attributes of this element
events: Events<'a>The element’s events
autocomplete: Cow<'a, str>The autocomplete attribute
cols: Cow<'a, str>The cols attribute
dirname: Cow<'a, str>The dirname attribute
disabled: boolThe disabled attribute
form: Cow<'a, str>The form attribute
maxlength: Cow<'a, str>The maxlength attribute
minlength: Cow<'a, str>The minlength attribute
name: Cow<'a, str>The name attribute
placeholder: Cow<'a, str>The placeholder attribute
readonly: boolThe readonly attribute
required: boolThe required attribute
rows: Cow<'a, str>The rows attribute
wrap: Cow<'a, str>The wrap attribute
children: Vec<Node<'a>>The children of this element
Trait Implementations§
Source§impl<'a> Element<'a> for Textarea<'a>
impl<'a> Element<'a> for Textarea<'a>
Source§fn events_mut(&mut self) -> &mut Events<'a>
fn events_mut(&mut self) -> &mut Events<'a>
Get the mutable events of this element
Source§fn children_mut(&mut self) -> &mut Vec<Node<'a>>
fn children_mut(&mut self) -> &mut Vec<Node<'a>>
Get the mutable children of this element
Source§impl<'a> HasAutocomplete<'a> for Textarea<'a>
impl<'a> HasAutocomplete<'a> for Textarea<'a>
Source§fn get_autocomplete(&self) -> &'_ str
fn get_autocomplete(&self) -> &'_ str
Get the value of the
autocomplete attributeSource§impl<'a> HasAutofocus<'a> for Textarea<'a>
impl<'a> HasAutofocus<'a> for Textarea<'a>
Source§fn get_autofocus(&self) -> bool
fn get_autofocus(&self) -> bool
Get the value of the
autofocus attributeSource§fn set_autofocus(&mut self, val: impl Into<bool>)
fn set_autofocus(&mut self, val: impl Into<bool>)
Set the value of the
autofocus attributeSource§impl<'a> HasDirname<'a> for Textarea<'a>
impl<'a> HasDirname<'a> for Textarea<'a>
Source§fn get_dirname(&self) -> &'_ str
fn get_dirname(&self) -> &'_ str
Get the value of the
dirname attributeSource§impl<'a> HasDisabled<'a> for Textarea<'a>
impl<'a> HasDisabled<'a> for Textarea<'a>
Source§fn get_disabled(&self) -> bool
fn get_disabled(&self) -> bool
Get the value of the
disabled attributeSource§fn set_disabled(&mut self, val: impl Into<bool>)
fn set_disabled(&mut self, val: impl Into<bool>)
Set the value of the
disabled attributeSource§impl<'a> HasItemscope<'a> for Textarea<'a>
impl<'a> HasItemscope<'a> for Textarea<'a>
Source§fn get_itemscope(&self) -> bool
fn get_itemscope(&self) -> bool
Get the value of the
itemscope attributeSource§fn set_itemscope(&mut self, val: impl Into<bool>)
fn set_itemscope(&mut self, val: impl Into<bool>)
Set the value of the
itemscope attributeSource§impl<'a> HasMaxlength<'a> for Textarea<'a>
impl<'a> HasMaxlength<'a> for Textarea<'a>
Source§fn get_maxlength(&self) -> &'_ str
fn get_maxlength(&self) -> &'_ str
Get the value of the
maxlength attributeSource§impl<'a> HasMinlength<'a> for Textarea<'a>
impl<'a> HasMinlength<'a> for Textarea<'a>
Source§fn get_minlength(&self) -> &'_ str
fn get_minlength(&self) -> &'_ str
Get the value of the
minlength attributeSource§impl<'a> HasPlaceholder<'a> for Textarea<'a>
impl<'a> HasPlaceholder<'a> for Textarea<'a>
Source§fn get_placeholder(&self) -> &'_ str
fn get_placeholder(&self) -> &'_ str
Get the value of the
placeholder attributeSource§impl<'a> HasReadonly<'a> for Textarea<'a>
impl<'a> HasReadonly<'a> for Textarea<'a>
Source§fn get_readonly(&self) -> bool
fn get_readonly(&self) -> bool
Get the value of the
readonly attributeSource§fn set_readonly(&mut self, val: impl Into<bool>)
fn set_readonly(&mut self, val: impl Into<bool>)
Set the value of the
readonly attributeSource§impl<'a> HasRequired<'a> for Textarea<'a>
impl<'a> HasRequired<'a> for Textarea<'a>
Source§fn get_required(&self) -> bool
fn get_required(&self) -> bool
Get the value of the
required attributeSource§fn set_required(&mut self, val: impl Into<bool>)
fn set_required(&mut self, val: impl Into<bool>)
Set the value of the
required attributeAuto Trait Implementations§
impl<'a> Freeze for Textarea<'a>
impl<'a> RefUnwindSafe for Textarea<'a>
impl<'a> Send for Textarea<'a>
impl<'a> Sync for Textarea<'a>
impl<'a> Unpin for Textarea<'a>
impl<'a> UnwindSafe for Textarea<'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