[][src]Struct moxie_dom::elements::forms::TextareaBuilder

#[must_use = "needs to be built"]pub struct TextareaBuilder { /* fields omitted */ }

The HTML <textarea> element represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form.

A type for initializing the element's attributes before calling build.

Implementations

impl TextareaBuilder[src]

pub fn build(self) -> Textarea[src]

Initialize the element with all of the attributes so far.

impl TextareaBuilder[src]

pub fn autocomplete(self, to_set: impl ToString) -> Self[src]

This attribute indicates whether the value of the control can be automatically completed by the browser. Possible values are:

  • off: The user must explicitly enter a value into this field for every use, or the document provides its own auto-completion method; the browser does not automatically complete the entry.
  • on: The browser can automatically complete the value based on values that the user has entered during previous uses.

If the autocomplete attribute is not specified on a