pub struct FieldsetBuilder(/* private fields */);
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.
Auto Trait Implementations§
impl Freeze for FieldsetBuilder
impl !RefUnwindSafe for FieldsetBuilder
impl !Send for FieldsetBuilder
impl !Sync for FieldsetBuilder
impl Unpin for FieldsetBuilder
impl !UnwindSafe for FieldsetBuilder
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