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

pub struct Props {
Show 24 fields pub code_ref: NodeRef, pub key: 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 onkeydown_signal: Callback<KeyboardEvent>, pub error_state: bool, pub error_message: String, pub wrap: WrapText,
}

Fields

code_ref: NodeRef

General property to get the ref of the component

key: String

General property to add keys

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. Default Palette::Standard

textarea_size: Size

The size of the input. Default Size::Medium

maxlength: u32

Maximum length (number of characters) of value. Default 1000

minlength: u16

Minimum length (number of characters) of value

disabled: bool

Whether the form control is disabled. Default false

name: String

The name of the textarea

readonly: bool

The value is not editable. Default false

required: bool

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

autofocus: bool

Automatically focus the form control when the page is loaded. Default false

autocomplete: bool

Hint for form autofill feature. Default false

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 “textarea” is subject to spell checking by the underlying browser/OS. Default false

oninput_signal: Callback<InputData>

Signal to emit the event input

onblur_signal: Callback<FocusEvent>

Signal to emit the event blur

onkeydown_signal: Callback<KeyboardEvent>

Signal to emit the event keypress

error_state: bool

Error state for validation. Default false

error_message: String

Show error message when error_state is true

wrap: WrapText

Indicates how the control wraps text. Default WrapText::Soft

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Builder that will be used to construct properties

Entrypoint for building properties

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Convert self to an optional value of a Properties struct.

Convert self to a value of a Properties struct.

Convert self to a value of a Properties struct.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.