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

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

The HTML Output element (<output>) is a container element into which a site or app can inject the results of a calculation or the outcome of a user action.

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

Implementations

impl OutputBuilder[src]

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

Initialize the element with all of the attributes so far.

impl OutputBuilder[src]

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

A space-separated list of other elements’ ids, indicating that those elements contributed input values to (or otherwise affected) the calculation.

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

The

element to associate the output with (its form owner). The value of this attribute must be the id of a in the same document. (If this attribute is not set, the is associated with its ancestor element, if any.)

This attribute lets you associate elements to s anywhere in the document, not just inside a . It can also override an ancestor element.

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

The element's name. Used in the form.elements API.

Trait Implementations

impl Element for OutputBuilder[src]

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

impl GlobalEventHandler for OutputBuilder[src]

impl HtmlElement for OutputBuilder[src]

impl Node for OutputBuilder[src]

impl<Child> Parent<Child> for OutputBuilder where
    Child: PhrasingContent
[src]

Auto Trait Implementations

impl !RefUnwindSafe for OutputBuilder

impl !Send for OutputBuilder

impl !Sync for OutputBuilder

impl Unpin for OutputBuilder

impl !UnwindSafe for OutputBuilder

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: Node
[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.