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

#[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.


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

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

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

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

Trait Implementations

impl ElementBuilder for OutputBuilder[src]

impl<E> EventTarget<E> for OutputBuilder where
    E: GlobalEvent

impl GlobalEventHandler for OutputBuilder[src]

impl HtmlElementBuilder for OutputBuilder[src]

impl NodeBuilder for OutputBuilder[src]

type Output = Output

The type of the DOM node

fn build(self) -> Output[src]

Initialize the element with all of the attributes so far.

impl NodeWrapper for OutputBuilder[src]

impl<Child> Parent<Child> for OutputBuilder where
    Child: PhrasingContent

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<N> Child for N where
    N: NodeWrapper

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.