Struct silkenweb_html::elements::OptgroupBuilder[][src]

pub struct OptgroupBuilder(_);

Implementations

impl OptgroupBuilder[src]

pub fn id(self, value: impl AttributeValue<String>) -> Self[src]

pub fn class(self, value: impl AttributeValue<String>) -> Self[src]

pub fn disabled(self, value: impl AttributeValue<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, value: impl AttributeValue<String>) -> 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.

impl OptgroupBuilder[src]

pub fn on_blur(
    self,
    f: impl 'static + FnMut(FocusEvent, HtmlOptGroupElement)
) -> Self
[src]

pub fn on_click(
    self,
    f: impl 'static + FnMut(MouseEvent, HtmlOptGroupElement)
) -> Self
[src]

pub fn on_change(
    self,
    f: impl 'static + FnMut(Event, HtmlOptGroupElement)
) -> Self
[src]

pub fn on_dblclick(
    self,
    f: impl 'static + FnMut(MouseEvent, HtmlOptGroupElement)
) -> Self
[src]

pub fn on_focusout(
    self,
    f: impl 'static + FnMut(FocusEvent, HtmlOptGroupElement)
) -> Self
[src]

pub fn on_input(
    self,
    f: impl 'static + FnMut(InputEvent, HtmlOptGroupElement)
) -> Self
[src]

pub fn on_keydown(
    self,
    f: impl 'static + FnMut(KeyboardEvent, HtmlOptGroupElement)
) -> Self
[src]

pub fn on_keyup(
    self,
    f: impl 'static + FnMut(KeyboardEvent, HtmlOptGroupElement)
) -> Self
[src]

pub fn effect(self, f: impl Effect<HtmlOptGroupElement>) -> Self[src]

impl OptgroupBuilder[src]

pub fn text(self, child: impl Text) -> Self[src]

pub fn child<Child>(self, c: Child) -> Self where
    Child: Into<Element>, 
[src]

Trait Implementations

impl Builder for OptgroupBuilder[src]

type Target = Optgroup

impl DomElement for OptgroupBuilder[src]

impl From<OptgroupBuilder> for Element[src]

impl From<OptgroupBuilder> for ElementBuilder[src]

Auto Trait Implementations

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