Struct silkenweb::elements::OutputBuilder[][src]

pub struct OutputBuilder(_);

Implementations

impl OutputBuilder[src]

pub fn id(self, value: impl AttributeValue<String>) -> OutputBuilder[src]

pub fn class(self, value: impl AttributeValue<String>) -> OutputBuilder[src]

pub fn for_(self, value: impl AttributeValue<String>) -> OutputBuilder[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, value: impl AttributeValue<String>) -> OutputBuilder[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, value: impl AttributeValue<String>) -> OutputBuilder[src]

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

impl OutputBuilder[src]

pub fn on_blur(
    self,
    f: impl FnMut(FocusEvent, HtmlOutputElement) + 'static
) -> OutputBuilder
[src]

pub fn on_click(
    self,
    f: impl FnMut(MouseEvent, HtmlOutputElement) + 'static
) -> OutputBuilder
[src]

pub fn on_change(
    self,
    f: impl FnMut(Event, HtmlOutputElement) + 'static
) -> OutputBuilder
[src]

pub fn on_dblclick(
    self,
    f: impl FnMut(MouseEvent, HtmlOutputElement) + 'static
) -> OutputBuilder
[src]

pub fn on_focusout(
    self,
    f: impl FnMut(FocusEvent, HtmlOutputElement) + 'static
) -> OutputBuilder
[src]

pub fn on_input(
    self,
    f: impl FnMut(InputEvent, HtmlOutputElement) + 'static
) -> OutputBuilder
[src]

pub fn on_keydown(
    self,
    f: impl FnMut(KeyboardEvent, HtmlOutputElement) + 'static
) -> OutputBuilder
[src]

pub fn on_keyup(
    self,
    f: impl FnMut(KeyboardEvent, HtmlOutputElement) + 'static
) -> OutputBuilder
[src]

pub fn effect(self, f: impl Effect<HtmlOutputElement>) -> OutputBuilder[src]

impl OutputBuilder[src]

pub fn text(self, child: impl Text) -> OutputBuilder[src]

pub fn child<Child>(self, c: Child) -> OutputBuilder where
    Child: Into<Element>, 
[src]

Trait Implementations

impl Builder for OutputBuilder[src]

type Target = Output

impl DomElement for OutputBuilder[src]

impl From<OutputBuilder> for ElementBuilder[src]

impl From<OutputBuilder> for Element[src]

Auto Trait Implementations

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<T> From<T> 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.