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

pub trait HtmlElementBuilder: ElementBuilder {
    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 { ... } }

The HTMLElement interface represents any HTML element.

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

Provided methods

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

Keyboard shortcut to activate or add focus to the element.

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 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

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.

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.

fn draggable(self, to_set: bool) -> Self[src]

Defines whether the element can be dragged.

fn hidden(self, to_set: bool) -> Self[src]

Indicates if the element is hidden or not.

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.

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).

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

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

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

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

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

Indicates whether spell checking is allowed for the element.

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

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

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

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

Loading content...

Implementors

impl HtmlElementBuilder for EmbedBuilder[src]

impl HtmlElementBuilder for IframeBuilder[src]

impl HtmlElementBuilder for ObjectBuilder[src]

impl HtmlElementBuilder for ParamBuilder[src]

impl HtmlElementBuilder for PictureBuilder[src]

impl HtmlElementBuilder for SourceBuilder[src]

impl HtmlElementBuilder for ButtonBuilder[src]

impl HtmlElementBuilder for DatalistBuilder[src]

impl HtmlElementBuilder for FieldsetBuilder[src]

impl HtmlElementBuilder for FormBuilder[src]

impl HtmlElementBuilder for InputBuilder[src]

impl HtmlElementBuilder for LabelBuilder[src]

impl HtmlElementBuilder for LegendBuilder[src]

impl HtmlElementBuilder for MeterBuilder[src]

impl HtmlElementBuilder for OptgroupBuilder[src]

impl HtmlElementBuilder for OptionBuilder[src]

impl HtmlElementBuilder for OutputBuilder[src]

impl HtmlElementBuilder for ProgressBuilder[src]

impl HtmlElementBuilder for SelectBuilder[src]

impl HtmlElementBuilder for TextareaBuilder[src]

impl HtmlElementBuilder for DetailsBuilder[src]

impl HtmlElementBuilder for DialogBuilder[src]

impl HtmlElementBuilder for MenuBuilder[src]

impl HtmlElementBuilder for SummaryBuilder[src]

impl HtmlElementBuilder for AreaBuilder[src]

impl HtmlElementBuilder for AudioBuilder[src]

impl HtmlElementBuilder for ImgBuilder[src]

impl HtmlElementBuilder for MapBuilder[src]

impl HtmlElementBuilder for TrackBuilder[src]

impl HtmlElementBuilder for VideoBuilder[src]

impl HtmlElementBuilder for BaseBuilder[src]

impl HtmlElementBuilder for HeadBuilder[src]

impl HtmlElementBuilder for LinkBuilder[src]

impl HtmlElementBuilder for MetaBuilder[src]

impl HtmlElementBuilder for StyleBuilder[src]

impl HtmlElementBuilder for TitleBuilder[src]

impl HtmlElementBuilder for CanvasBuilder[src]

impl HtmlElementBuilder for NoscriptBuilder[src]

impl HtmlElementBuilder for ScriptBuilder[src]

impl HtmlElementBuilder for AddressBuilder[src]

impl HtmlElementBuilder for ArticleBuilder[src]

impl HtmlElementBuilder for AsideBuilder[src]

impl HtmlElementBuilder for FooterBuilder[src]

impl HtmlElementBuilder for H1Builder[src]

impl HtmlElementBuilder for H2Builder[src]

impl HtmlElementBuilder for H3Builder[src]

impl HtmlElementBuilder for H4Builder[src]

impl HtmlElementBuilder for H5Builder[src]

impl HtmlElementBuilder for H6Builder[src]

impl HtmlElementBuilder for HeaderBuilder[src]

impl HtmlElementBuilder for HgroupBuilder[src]

impl HtmlElementBuilder for MainBuilder[src]

impl HtmlElementBuilder for NavBuilder[src]

impl HtmlElementBuilder for SectionBuilder[src]

impl HtmlElementBuilder for BodyBuilder[src]

impl HtmlElementBuilder for HtmlBuilder[src]

impl HtmlElementBuilder for SlotBuilder[src]

impl HtmlElementBuilder for TemplateBuilder[src]

impl HtmlElementBuilder for CaptionBuilder[src]

impl HtmlElementBuilder for ColBuilder[src]

impl HtmlElementBuilder for ColgroupBuilder[src]

impl HtmlElementBuilder for TableBuilder[src]

impl HtmlElementBuilder for TbodyBuilder[src]

impl HtmlElementBuilder for TdBuilder[src]

impl HtmlElementBuilder for TfootBuilder[src]

impl HtmlElementBuilder for ThBuilder[src]

impl HtmlElementBuilder for TheadBuilder[src]

impl HtmlElementBuilder for TrBuilder[src]

impl HtmlElementBuilder for BlockquoteBuilder[src]

impl HtmlElementBuilder for DdBuilder[src]

impl HtmlElementBuilder for DivBuilder[src]

impl HtmlElementBuilder for DlBuilder[src]

impl HtmlElementBuilder for DtBuilder[src]

impl HtmlElementBuilder for FigcaptionBuilder[src]

impl HtmlElementBuilder for FigureBuilder[src]

impl HtmlElementBuilder for HrBuilder[src]

impl HtmlElementBuilder for LiBuilder[src]

impl HtmlElementBuilder for OlBuilder[src]

impl HtmlElementBuilder for PBuilder[src]

impl HtmlElementBuilder for PreBuilder[src]

impl HtmlElementBuilder for UlBuilder[src]

impl HtmlElementBuilder for ABuilder[src]

impl HtmlElementBuilder for AbbrBuilder[src]

impl HtmlElementBuilder for BBuilder[src]

impl HtmlElementBuilder for BdiBuilder[src]

impl HtmlElementBuilder for BdoBuilder[src]

impl HtmlElementBuilder for BrBuilder[src]

impl HtmlElementBuilder for CiteBuilder[src]

impl HtmlElementBuilder for CodeBuilder[src]

impl HtmlElementBuilder for DataBuilder[src]

impl HtmlElementBuilder for DelBuilder[src]

impl HtmlElementBuilder for DfnBuilder[src]

impl HtmlElementBuilder for EmBuilder[src]

impl HtmlElementBuilder for IBuilder[src]

impl HtmlElementBuilder for InsBuilder[src]

impl HtmlElementBuilder for KbdBuilder[src]

impl HtmlElementBuilder for MarkBuilder[src]

impl HtmlElementBuilder for QBuilder[src]

impl HtmlElementBuilder for RbBuilder[src]

impl HtmlElementBuilder for RpBuilder[src]

impl HtmlElementBuilder for RtBuilder[src]

impl HtmlElementBuilder for RtcBuilder[src]

impl HtmlElementBuilder for RubyBuilder[src]

impl HtmlElementBuilder for SBuilder[src]

impl HtmlElementBuilder for SampBuilder[src]

impl HtmlElementBuilder for SmallBuilder[src]

impl HtmlElementBuilder for SpanBuilder[src]

impl HtmlElementBuilder for StrongBuilder[src]

impl HtmlElementBuilder for SubBuilder[src]

impl HtmlElementBuilder for SupBuilder[src]

impl HtmlElementBuilder for TimeBuilder[src]

impl HtmlElementBuilder for UBuilder[src]

impl HtmlElementBuilder for VarBuilder[src]

impl HtmlElementBuilder for WbrBuilder[src]

Loading content...