pub struct OutputBuilder(/* private fields */);
Implementations§
Source§impl OutputBuilder
impl OutputBuilder
pub fn id(self, value: impl AttributeValue<String>) -> Self
pub fn class(self, value: impl AttributeValue<String>) -> Self
Sourcepub fn for_(self, value: impl AttributeValue<String>) -> Self
pub fn for_(self, value: impl AttributeValue<String>) -> Self
A space-separated list of other elements’ ids, indicating that those elements contributed input values to (or otherwise affected) the calculation.
Sourcepub fn form(self, value: impl AttributeValue<String>) -> Self
pub fn form(self, value: impl AttributeValue<String>) -> Self
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.
Sourcepub fn name(self, value: impl AttributeValue<String>) -> Self
pub fn name(self, value: impl AttributeValue<String>) -> Self
The element’s name. Used in the form.elements API.
Source§impl OutputBuilder
impl OutputBuilder
pub fn on_blur( self, f: impl 'static + FnMut(FocusEvent, HtmlOutputElement), ) -> Self
pub fn on_click( self, f: impl 'static + FnMut(MouseEvent, HtmlOutputElement), ) -> Self
pub fn on_change( self, f: impl 'static + FnMut(Event, HtmlOutputElement), ) -> Self
pub fn on_dblclick( self, f: impl 'static + FnMut(MouseEvent, HtmlOutputElement), ) -> Self
pub fn on_focusout( self, f: impl 'static + FnMut(FocusEvent, HtmlOutputElement), ) -> Self
pub fn on_input( self, f: impl 'static + FnMut(InputEvent, HtmlOutputElement), ) -> Self
pub fn on_keydown( self, f: impl 'static + FnMut(KeyboardEvent, HtmlOutputElement), ) -> Self
pub fn on_keyup( self, f: impl 'static + FnMut(KeyboardEvent, HtmlOutputElement), ) -> Self
pub fn effect(self, f: impl Effect<HtmlOutputElement>) -> Self
Trait Implementations§
Source§impl Builder for OutputBuilder
impl Builder for OutputBuilder
Source§impl DomElement for OutputBuilder
impl DomElement for OutputBuilder
type Target = HtmlOutputElement
fn dom_element(&self) -> Self::Target
Source§impl From<OutputBuilder> for Element
impl From<OutputBuilder> for Element
Source§fn from(builder: OutputBuilder) -> Self
fn from(builder: OutputBuilder) -> Self
Converts to this type from the input type.
Source§impl From<OutputBuilder> for ElementBuilder
impl From<OutputBuilder> for ElementBuilder
Source§fn from(builder: OutputBuilder) -> Self
fn from(builder: OutputBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OutputBuilder
impl !RefUnwindSafe for OutputBuilder
impl !Send for OutputBuilder
impl !Sync for OutputBuilder
impl Unpin for OutputBuilder
impl !UnwindSafe for OutputBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more