Struct silkenweb_html::elements::OptgroupBuilder
source · pub struct OptgroupBuilder(_);
Implementations§
source§impl OptgroupBuilder
impl OptgroupBuilder
pub fn id(self, value: impl AttributeValue<String>) -> Self
pub fn class(self, value: impl AttributeValue<String>) -> Self
sourcepub fn disabled(self, value: impl AttributeValue<bool>) -> Self
pub fn disabled(self, value: impl AttributeValue<bool>) -> Self
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.
sourcepub fn label(self, value: impl AttributeValue<String>) -> Self
pub fn label(self, value: impl AttributeValue<String>) -> Self
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.
source§impl OptgroupBuilder
impl OptgroupBuilder
pub fn on_blur(
self,
f: impl 'static + FnMut(FocusEvent, HtmlOptGroupElement)
) -> Self
pub fn on_click(
self,
f: impl 'static + FnMut(MouseEvent, HtmlOptGroupElement)
) -> Self
pub fn on_change(
self,
f: impl 'static + FnMut(Event, HtmlOptGroupElement)
) -> Self
pub fn on_dblclick(
self,
f: impl 'static + FnMut(MouseEvent, HtmlOptGroupElement)
) -> Self
pub fn on_focusout(
self,
f: impl 'static + FnMut(FocusEvent, HtmlOptGroupElement)
) -> Self
pub fn on_input(
self,
f: impl 'static + FnMut(InputEvent, HtmlOptGroupElement)
) -> Self
pub fn on_keydown(
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlOptGroupElement)
) -> Self
pub fn on_keyup(
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlOptGroupElement)
) -> Self
pub fn effect(self, f: impl Effect<HtmlOptGroupElement>) -> Self
Trait Implementations§
source§impl Builder for OptgroupBuilder
impl Builder for OptgroupBuilder
source§impl DomElement for OptgroupBuilder
impl DomElement for OptgroupBuilder
type Target = HtmlOptGroupElement
fn dom_element(&self) -> Self::Target
source§impl From<OptgroupBuilder> for Element
impl From<OptgroupBuilder> for Element
source§fn from(builder: OptgroupBuilder) -> Self
fn from(builder: OptgroupBuilder) -> Self
Converts to this type from the input type.
source§impl From<OptgroupBuilder> for ElementBuilder
impl From<OptgroupBuilder> for ElementBuilder
source§fn from(builder: OptgroupBuilder) -> Self
fn from(builder: OptgroupBuilder) -> Self
Converts to this type from the input type.