Textarea

Trait Textarea 

Source
pub trait Textarea: WithAttribute {
Show 19 methods // Provided methods fn autocomplete( self, autocomplete: AutoComplete, ) -> Self::Output<AutoComplete> { ... } fn cols(self, cols: u32) -> Self::Output<Cols> { ... } fn dirname( self, dirname: impl Into<Cow<'static, str>>, ) -> Self::Output<Dirname> { ... } fn disabled(self) -> Self::Output<Disabled> { ... } fn with_disabled(self, disabled: bool) -> Self::Output<Disabled> { ... } fn form(self, form: impl Into<Cow<'static, str>>) -> Self::Output<Form> { ... } fn max_length(self, max_length: i32) -> Self::Output<MaxLength> { ... } fn min_length(self, min_length: i32) -> Self::Output<MinLength> { ... } fn name(self, name: impl Into<Cow<'static, str>>) -> Self::Output<Name> { ... } fn placeholder( self, placeholder: impl Into<Cow<'static, str>>, ) -> Self::Output<Placeholder> { ... } fn read_only(self) -> Self::Output<ReadOnly> { ... } fn with_read_only(self, read_only: bool) -> Self::Output<ReadOnly> { ... } fn required(self) -> Self::Output<Required> { ... } fn with_required(self, required: bool) -> Self::Output<Required> { ... } fn rows(self, rows: u32) -> Self::Output<Rows> { ... } fn wrap(self, wrap: Wrap) -> Self::Output<Wrap> { ... } fn wrap_hard(self) -> Self::Output<Wrap> { ... } fn on_input<E>( self, event: impl FnOnce(InputEvent) -> E, ) -> Self::Output<OnInput> where E: Serialize + 'static { ... } fn on_change<E>( self, event: impl FnOnce(InputEvent) -> E, ) -> Self::Output<OnChange> where E: Serialize + 'static { ... }
}
Expand description

The textarea element represents a multiline plain text edit control for the element’s raw value. The contents of the control represent the control’s default value.

Provided Methods§

Source

fn autocomplete(self, autocomplete: AutoComplete) -> Self::Output<AutoComplete>

Hint for form autofill feature.

Source

fn cols(self, cols: u32) -> Self::Output<Cols>

Maximum number of characters per line.

Source

fn dirname(self, dirname: impl Into<Cow<'static, str>>) -> Self::Output<Dirname>

Name of form control to use for sending the element’s directionality in form submission.

Source

fn disabled(self) -> Self::Output<Disabled>

Whether the form control is disabled.

Source

fn with_disabled(self, disabled: bool) -> Self::Output<Disabled>

Whether the form control is disabled.

Source

fn form(self, form: impl Into<Cow<'static, str>>) -> Self::Output<Form>

Associates the element with a super::form element.

Source

fn max_length(self, max_length: i32) -> Self::Output<MaxLength>

Maximum length of value.

Source

fn min_length(self, min_length: i32) -> Self::Output<MinLength>

Minimum length of value.

Source

fn name(self, name: impl Into<Cow<'static, str>>) -> Self::Output<Name>

Name of the element to use for form submission.

Source

fn placeholder( self, placeholder: impl Into<Cow<'static, str>>, ) -> Self::Output<Placeholder>

User-visible label to be placed within the form control.

Source

fn read_only(self) -> Self::Output<ReadOnly>

Whether to allow the value to be edited by the user.

Source

fn with_read_only(self, read_only: bool) -> Self::Output<ReadOnly>

Whether to allow the value to be edited by the user.

Source

fn required(self) -> Self::Output<Required>

Whether the control is required for form submission.

Source

fn with_required(self, required: bool) -> Self::Output<Required>

Whether the control is required for form submission.

Source

fn rows(self, rows: u32) -> Self::Output<Rows>

Number of lines to show.

Source

fn wrap(self, wrap: Wrap) -> Self::Output<Wrap>

How the value of the form control is to be wrapped for form submission.

Source

fn wrap_hard(self) -> Self::Output<Wrap>

How the value of the form control is to be wrapped for form submission.

Source

fn on_input<E>( self, event: impl FnOnce(InputEvent) -> E, ) -> Self::Output<OnInput>
where E: Serialize + 'static,

Source

fn on_change<E>( self, event: impl FnOnce(InputEvent) -> E, ) -> Self::Output<OnChange>
where E: Serialize + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<A: Attributes, V: 'static> Textarea for Html<Textarea, A, V>