Struct moxie_dom::elements::text_content::OlBuilder[][src]

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

The HTML <ol> element represents an ordered list of items, typically rendered as a numbered list.

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

Implementations

impl OlBuilder[src]

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

Specifies that the list’s items are in reverse order. Items will be numbered from high to low.

pub fn start(self, to_set: u32) -> Self[src]

An integer to start counting from for the list items. Always an Arabic numeral (1, 2, 3, etc.), even when the numbering type is letters or Roman numerals. For example, to start numbering elements from the letter “d” or the Roman numeral “iv,” use start=“4”.

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

Sets the numbering type:

  • a for lowercase letters
  • A for uppercase letters
  • i for lowercase Roman numerals
  • I for uppercase Roman numerals
  • 1 for numbers (default)

The specified type is used for the entire list unless a different type attribute is used on an enclosed <li> element.

Note: Unless the type of the list number matters (like legal or technical documents where items are referenced by their number/letter), use the CSS list-style-type property instead.

Trait Implementations

impl ElementBuilder for OlBuilder[src]

impl<E> EventTarget<E> for OlBuilder where
    E: GlobalEvent
[src]

impl GlobalEventHandler for OlBuilder[src]

impl HtmlElementBuilder for OlBuilder[src]

impl NodeBuilder for OlBuilder[src]

type Output = Ol

The type of the DOM node

fn build(self) -> Ol[src]

Initialize the element with all of the attributes so far.

impl NodeWrapper for OlBuilder[src]

impl Parent<Li> for OlBuilder[src]

impl Parent<Script> for OlBuilder[src]

impl Parent<Template> for OlBuilder[src]

Auto Trait Implementations

impl !RefUnwindSafe for OlBuilder

impl !Send for OlBuilder

impl !Sync for OlBuilder

impl Unpin for OlBuilder

impl !UnwindSafe for OlBuilder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<N> Child for N where
    N: NodeWrapper
[src]

impl<T> Downcast for T where
    T: Any

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.