Struct silkenweb_html::elements::FieldsetBuilder
source · pub struct FieldsetBuilder(_);
Implementations§
source§impl FieldsetBuilder
impl FieldsetBuilder
pub fn id(self, value: impl AttributeValue<String>) -> Self
pub fn class(self, value: impl AttributeValue<String>) -> Self
sourcepub fn disabled(self, value: impl AttributeValue<String>) -> Self
pub fn disabled(self, value: impl AttributeValue<String>) -> Self
If this Boolean attribute is set, all form controls that are descendants of the
<fieldset>
are disabled, meaning they are not editable and won’t be submitted along
with the <form>
. They won’t receive any browsing events, like mouse clicks or
focus-related events. By default browsers display such controls grayed out. Note that
form elements inside the <legend>
element won’t be disabled.
sourcepub fn form(self, value: impl AttributeValue<String>) -> Self
pub fn form(self, value: impl AttributeValue<String>) -> Self
This attribute takes the value of the id attribute of a <form>
element you want the
<fieldset>
to be part of, even if it is not inside the form.
sourcepub fn name(self, value: impl AttributeValue<String>) -> Self
pub fn name(self, value: impl AttributeValue<String>) -> Self
The name associated with the group.
Note: The caption for the fieldset is given by the first <legend>
element inside it.
source§impl FieldsetBuilder
impl FieldsetBuilder
pub fn on_blur(
self,
f: impl 'static + FnMut(FocusEvent, HtmlFieldSetElement)
) -> Self
pub fn on_click(
self,
f: impl 'static + FnMut(MouseEvent, HtmlFieldSetElement)
) -> Self
pub fn on_change(
self,
f: impl 'static + FnMut(Event, HtmlFieldSetElement)
) -> Self
pub fn on_dblclick(
self,
f: impl 'static + FnMut(MouseEvent, HtmlFieldSetElement)
) -> Self
pub fn on_focusout(
self,
f: impl 'static + FnMut(FocusEvent, HtmlFieldSetElement)
) -> Self
pub fn on_input(
self,
f: impl 'static + FnMut(InputEvent, HtmlFieldSetElement)
) -> Self
pub fn on_keydown(
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlFieldSetElement)
) -> Self
pub fn on_keyup(
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlFieldSetElement)
) -> Self
pub fn effect(self, f: impl Effect<HtmlFieldSetElement>) -> Self
Trait Implementations§
source§impl Builder for FieldsetBuilder
impl Builder for FieldsetBuilder
source§impl DomElement for FieldsetBuilder
impl DomElement for FieldsetBuilder
type Target = HtmlFieldSetElement
fn dom_element(&self) -> Self::Target
source§impl From<FieldsetBuilder> for Element
impl From<FieldsetBuilder> for Element
source§fn from(builder: FieldsetBuilder) -> Self
fn from(builder: FieldsetBuilder) -> Self
Converts to this type from the input type.
source§impl From<FieldsetBuilder> for ElementBuilder
impl From<FieldsetBuilder> for ElementBuilder
source§fn from(builder: FieldsetBuilder) -> Self
fn from(builder: FieldsetBuilder) -> Self
Converts to this type from the input type.