Struct moxie_dom::elements::forms::FieldsetBuilder[][src]

#[must_use = "needs to be built"]pub struct FieldsetBuilder { /* fields omitted */ }

The HTML <fieldset> element is used to group several controls as well as labels (<label>) within a web form.

A type for initializing the element’s attributes before calling build.


impl FieldsetBuilder[src]

pub fn disabled(self, to_set: impl ToString) -> Self[src]

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.

pub fn form(self, to_set: impl ToString) -> Self[src]

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.

pub fn name(self, to_set: impl ToString) -> Self[src]

The name associated with the group.

Note: The caption for the fieldset is given by the first <legend> element inside it.

Trait Implementations

impl ElementBuilder for FieldsetBuilder[src]

impl<E> EventTarget<E> for FieldsetBuilder where
    E: GlobalEvent

impl GlobalEventHandler for FieldsetBuilder[src]

impl HtmlElementBuilder for FieldsetBuilder[src]

impl NodeBuilder for FieldsetBuilder[src]

type Output = Fieldset

The type of the DOM node

fn build(self) -> Fieldset[src]

Initialize the element with all of the attributes so far.

impl NodeWrapper for FieldsetBuilder[src]

impl<Child> Parent<Child> for FieldsetBuilder where
    Child: FlowContent

impl Parent<Legend> for FieldsetBuilder[src]

Auto Trait Implementations

impl !RefUnwindSafe for FieldsetBuilder

impl !Send for FieldsetBuilder

impl !Sync for FieldsetBuilder

impl Unpin for FieldsetBuilder

impl !UnwindSafe for FieldsetBuilder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<N> Child for N where
    N: NodeWrapper

impl<T> Downcast for T where
    T: Any

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.