[−][src]Trait moxie_dom::interfaces::html_element::HtmlElementBuilder
The HTMLElement interface represents any HTML element.
Note: this trait cannot be implemented outside of this crate.
Provided methods
pub fn accesskey(self, to_set: impl ToString) -> Self
[src]
Keyboard shortcut to activate or add focus to the element.
pub fn autocapitalize(self, to_set: impl ToString) -> Self
[src]
Sets whether input is automatically capitalized when entered by user. It can have the following values:
off
ornone
, no autocapitalization is applied (all letters default to lowercase)on
orsentences
, the first letter of each sentence defaults to a capital letter; all other letters default to lowercasewords
, the first letter of each word defaults to a capital letter; all other letters default to lowercasecharacters
, all letters should default to uppercase
pub fn contenteditable(self, to_set: bool) -> Self
[src]
A value of "true" means the element is editable and a value of "false" means it isn't.
pub fn dir(self, to_set: impl ToString) -> Self
[src]
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.
pub fn draggable(self, to_set: bool) -> Self
[src]
Defines whether the element can be dragged.
pub fn hidden(self, to_set: bool) -> Self
[src]
Indicates if the element is hidden or not.
pub fn inert(self, to_set: bool) -> Self
[src]
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.
pub fn inputmode(self, to_set: impl ToString) -> Self
[src]
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).
pub fn lang(self, to_set: impl ToString) -> Self
[src]
The language of an element's attributes, text, and element contents.
pub fn slot(self, to_set: impl ToString) -> Self
[src]
Assigns a slot in a shadow DOM shadow tree to an element.
pub fn spellcheck(self, to_set: impl ToString) -> Self
[src]
Indicates whether spell checking is allowed for the element.
pub fn tabindex(self, to_set: impl ToString) -> Self
[src]
Overrides the browser's default tab order and follows the one specified instead.
pub fn title(self, to_set: impl ToString) -> Self
[src]
The text that appears in a popup box when mouse is over the element.