Struct silkenweb::elements::OptgroupBuilder[][src]

pub struct OptgroupBuilder(_);

Implementations

impl OptgroupBuilder[src]

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

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

pub fn disabled(self, value: impl AttributeValue<bool>) -> OptgroupBuilder[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>) -> OptgroupBuilder[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 FnMut(FocusEvent, HtmlOptGroupElement) + 'static
) -> OptgroupBuilder
[src]

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

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

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

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

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

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

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

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

impl OptgroupBuilder[src]

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

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

Trait Implementations

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.