Struct silkenweb_html::elements::OutputBuilder
source · pub struct OutputBuilder(_);
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.