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

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

The HTML <optgroup> element creates a grouping of options within a <select> element.

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


impl OptgroupBuilder[src]

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

If set, none of the items in this option group is selectable. Often browsers grey out such control and it won’t receive any browsing events, like mouse clicks or focus-related ones.

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

The name of the group of options, which the browser can use when labeling the options in the user interface. This attribute is mandatory if this element is used.

Trait Implementations

impl ElementBuilder for OptgroupBuilder[src]

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

impl GlobalEventHandler for OptgroupBuilder[src]

impl HtmlElementBuilder for OptgroupBuilder[src]

impl NodeBuilder for OptgroupBuilder[src]

type Output = Optgroup

The type of the DOM node

fn build(self) -> Optgroup[src]

Initialize the element with all of the attributes so far.

impl NodeWrapper for OptgroupBuilder[src]

impl Parent<Option> for OptgroupBuilder[src]

Auto Trait Implementations

impl !RefUnwindSafe for OptgroupBuilder

impl !Send for OptgroupBuilder

impl !Sync for OptgroupBuilder

impl Unpin for OptgroupBuilder

impl !UnwindSafe for OptgroupBuilder

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.