pub struct TextAreaProps {
pub text: String,
pub placeholder: String,
pub min_lines: u32,
pub max_lines: u32,
pub editable: bool,
pub selectable: bool,
pub spellcheck: bool,
pub submit_on_enter: bool,
}Expand description
Full text-area props (realize, kinds::TEXT_AREA — docs/textarea.md). text seeds the
editor; min_lines/max_lines bound the auto-growing height in text lines
(max_lines == 0 = unbounded). editable/selectable/spellcheck control the native
editor attributes (all default true); a backend that can’t honor one answers
Cap::Text{Editable,Selectable,SpellCheck} = Unsupported. text and the three attributes
change after build (via TextAreaPatch); the rest are build-only.
Fields§
§text: String§placeholder: String§min_lines: u32§max_lines: u32§editable: boolWhether the user can edit the text (false = read-only). Default true.
selectable: boolWhether the text can be selected (and copied). Default true.
spellcheck: boolWhether spell-check / autocorrect highlighting is on. Default true.
submit_on_enter: boolPlain Enter emits Event::Submitted instead of inserting a newline (Shift+Enter
still inserts one where the platform can distinguish). Chat composers. Default
false.
Trait Implementations§
Source§impl Clone for TextAreaProps
impl Clone for TextAreaProps
Source§fn clone(&self) -> TextAreaProps
fn clone(&self) -> TextAreaProps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TextAreaProps
impl Debug for TextAreaProps
Source§impl Default for TextAreaProps
impl Default for TextAreaProps
Source§impl PartialEq for TextAreaProps
impl PartialEq for TextAreaProps
Source§fn eq(&self, other: &TextAreaProps) -> bool
fn eq(&self, other: &TextAreaProps) -> bool
self and other values to be equal, and is used by ==.