[][src]Struct yew_styles::forms::form_textarea::Props

pub struct Props {
    pub value: String,
    pub class_name: String,
    pub id: String,
    pub placeholder: String,
    pub textarea_style: Palette,
    pub textarea_size: Size,
    pub maxlength: u32,
    pub minlength: u16,
    pub disabled: bool,
    pub name: String,
    pub readonly: bool,
    pub required: bool,
    pub autofocus: bool,
    pub autocomplete: bool,
    pub cols: u16,
    pub rows: u16,
    pub spellcheck: bool,
    pub oninput_signal: Callback<InputData>,
    pub onblur_signal: Callback<FocusEvent>,
    pub onkeypress_signal: Callback<KeyboardEvent>,
    pub error_state: bool,
    pub error_message: String,
    pub wrap: WrapText,
}

Fields

value: String

Current value of the form control. Required

class_name: String

General property to add custom class styles

id: String

General property to add custom id

placeholder: String

Content to be appear in the form control when the form control is empty

textarea_style: Palette

The input style according with the purpose

textarea_size: Size

The size of the input

maxlength: u32

Maximum length (number of characters) of value

minlength: u16

Minimum length (number of characters) of value

disabled: bool

Whether the form control is disabled

name: String

The name of the textarea

readonly: bool

The value is not editable

required: bool

A value is required or must be check for the form to be submittable

autofocus: bool

Automatically focus the form control when the page is loaded

autocomplete: bool

Hint for form autofill feature

cols: u16

The visible width of the text control

rows: u16

The number of visible text lines for the control

spellcheck: bool

Specifies whether the