Trait moxie_dom::interfaces::html_element::HtmlElementBuilder[][src]

pub trait HtmlElementBuilder: ElementBuilder {
Show 13 methods fn accesskey(self, to_set: impl ToString) -> Self { ... }
fn autocapitalize(self, to_set: impl ToString) -> Self { ... }
fn contenteditable(self, to_set: bool) -> Self { ... }
fn dir(self, to_set: impl ToString) -> Self { ... }
fn draggable(self, to_set: bool) -> Self { ... }
fn hidden(self, to_set: bool) -> Self { ... }
fn inert(self, to_set: bool) -> Self { ... }
fn inputmode(self, to_set: impl ToString) -> Self { ... }
fn lang(self, to_set: impl ToString) -> Self { ... }
fn slot(self, to_set: impl ToString) -> Self { ... }
fn spellcheck(self, to_set: impl ToString) -> Self { ... }
fn tabindex(self, to_set: impl ToString) -> Self { ... }
fn title(self, to_set: impl ToString) -> Self { ... }
}
Expand description

The HTMLElement interface represents any HTML element.

Note: this trait cannot be implemented outside of this crate.

Provided methods

Keyboard shortcut to activate or add focus to the element.

Sets whether input is automatically capitalized when entered by user. It can have the following values:

  • off or none, no autocapitalization is applied (all letters default to lowercase)
  • on or sentences, the first letter of each sentence defaults to a capital letter; all other letters default to lowercase
  • words, the first letter of each word defaults to a capital letter; all other letters default to lowercase
  • characters, all letters should default to uppercase

A value of “true” means the element is editable and a value of “false” means it isn’t.

The directionality of the element. It can have the following values:

  • ltr, which means left to right and is to be used for languages that are written from the left to the right (like English);
  • rtl, which means right to left and is to be used for languages that are written from the right to the left (like Arabic);
  • auto, which lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then it applies that directionality to the whole element.

Defines whether the element can be dragged.

Indicates if the element is hidden or not.

Indicates whether the user agent must act as though the given node is absent for the purposes of user interaction events, in-page text searches (“find in page”), and text selection.

Provides a hint as to the type of data that might be entered by the user while editing the element or its contents. The attribute can be used with form controls (such as the value of textarea elements), or in elements in an editing host (e.g., using contenteditable attribute).

The language of an element’s attributes, text, and element contents.

Assigns a slot in a shadow DOM shadow tree to an element.

Indicates whether spell checking is allowed for the element.

Overrides the browser’s default tab order and follows the one specified instead.

The text that appears in a popup box when mouse is over the element.

Implementors