Struct silkenweb::elements::LabelBuilder [−][src]
pub struct LabelBuilder(_);
Implementations
impl LabelBuilder
[src]
impl LabelBuilder
[src]pub fn id(self, value: impl AttributeValue<String>) -> LabelBuilder
[src]
pub fn class(self, value: impl AttributeValue<String>) -> LabelBuilder
[src]
pub fn for_(self, value: impl AttributeValue<String>) -> LabelBuilder
[src]
The id of a labelable form-related element in the same document as the <label>
element. The first element in the document with an id matching the value of the for
attribute is the labeled control for this label element, if it is a labelable element.
If it is not labelable then the for attribute has no effect. If there are other elements
which also match the id value, later in the document, they are not considered.
Note: A <label>
element can have both a for attribute and a contained control element,
as long as the for attribute points to the contained control element.
pub fn form(self, value: impl AttributeValue<String>) -> LabelBuilder
[src]
The <form>
element with which the label is associated (its form owner). If specified,
the value of the attribute is the id of a <form>
element in the same document. This
lets you place label elements anywhere within a document, not just as descendants of
their form elements.
impl LabelBuilder
[src]
impl LabelBuilder
[src]pub fn on_blur(
self,
f: impl FnMut(FocusEvent, HtmlLabelElement) + 'static
) -> LabelBuilder
[src]
self,
f: impl FnMut(FocusEvent, HtmlLabelElement) + 'static
) -> LabelBuilder
pub fn on_click(
self,
f: impl FnMut(MouseEvent, HtmlLabelElement) + 'static
) -> LabelBuilder
[src]
self,
f: impl FnMut(MouseEvent, HtmlLabelElement) + 'static
) -> LabelBuilder
pub fn on_change(
self,
f: impl FnMut(Event, HtmlLabelElement) + 'static
) -> LabelBuilder
[src]
self,
f: impl FnMut(Event, HtmlLabelElement) + 'static
) -> LabelBuilder
pub fn on_dblclick(
self,
f: impl FnMut(MouseEvent, HtmlLabelElement) + 'static
) -> LabelBuilder
[src]
self,
f: impl FnMut(MouseEvent, HtmlLabelElement) + 'static
) -> LabelBuilder
pub fn on_focusout(
self,
f: impl FnMut(FocusEvent, HtmlLabelElement) + 'static
) -> LabelBuilder
[src]
self,
f: impl FnMut(FocusEvent, HtmlLabelElement) + 'static
) -> LabelBuilder
pub fn on_input(
self,
f: impl FnMut(InputEvent, HtmlLabelElement) + 'static
) -> LabelBuilder
[src]
self,
f: impl FnMut(InputEvent, HtmlLabelElement) + 'static
) -> LabelBuilder
pub fn on_keydown(
self,
f: impl FnMut(KeyboardEvent, HtmlLabelElement) + 'static
) -> LabelBuilder
[src]
self,
f: impl FnMut(KeyboardEvent, HtmlLabelElement) + 'static
) -> LabelBuilder
pub fn on_keyup(
self,
f: impl FnMut(KeyboardEvent, HtmlLabelElement) + 'static
) -> LabelBuilder
[src]
self,
f: impl FnMut(KeyboardEvent, HtmlLabelElement) + 'static
) -> LabelBuilder
pub fn effect(self, f: impl Effect<HtmlLabelElement>) -> LabelBuilder
[src]
impl LabelBuilder
[src]
impl LabelBuilder
[src]pub fn text(self, child: impl Text) -> LabelBuilder
[src]
pub fn child<Child>(self, c: Child) -> LabelBuilder where
Child: Into<Element>,
[src]
Child: Into<Element>,
Trait Implementations
impl Builder for LabelBuilder
[src]
impl Builder for LabelBuilder
[src]type Target = Label
pub fn build(self) -> <LabelBuilder as Builder>::Target
[src]
pub fn into_element(self) -> Element
[src]
impl DomElement for LabelBuilder
[src]
impl DomElement for LabelBuilder
[src]type Target = HtmlLabelElement
pub fn dom_element(&self) -> <LabelBuilder as DomElement>::Target
[src]
impl From<LabelBuilder> for ElementBuilder
[src]
impl From<LabelBuilder> for ElementBuilder
[src]pub fn from(builder: LabelBuilder) -> ElementBuilder
[src]
impl From<LabelBuilder> for Element
[src]
impl From<LabelBuilder> for Element
[src]pub fn from(builder: LabelBuilder) -> Element
[src]
Auto Trait Implementations
impl !RefUnwindSafe for LabelBuilder
impl !RefUnwindSafe for LabelBuilder
impl !Send for LabelBuilder
impl !Send for LabelBuilder
impl !Sync for LabelBuilder
impl !Sync for LabelBuilder
impl Unpin for LabelBuilder
impl Unpin for LabelBuilder
impl !UnwindSafe for LabelBuilder
impl !UnwindSafe for LabelBuilder