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

#[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.

Implementations

impl OptgroupBuilder[src]

pub fn build(self) -> Optgroup[src]

Initialize the element with all of the attributes so far.

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 Element for OptgroupBuilder[src]

impl<E> EventTarget<E> for OptgroupBuilder where
    E: GlobalEvent
[src]

impl GlobalEventHandler for OptgroupBuilder[src]

impl HtmlElement for OptgroupBuilder[src]

impl Node 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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<N> Child for N where
    N: Node
[src]

impl<T> Downcast for T where
    T: Any

impl<T> Erased for T

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.