pub struct OptgroupBuilder(/* private fields */);
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.
Auto Trait Implementations§
impl Freeze for OptgroupBuilder
impl !RefUnwindSafe for OptgroupBuilder
impl !Send for OptgroupBuilder
impl !Sync for OptgroupBuilder
impl Unpin for OptgroupBuilder
impl !UnwindSafe for OptgroupBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more