Struct silkenweb_html::elements::OptionBuilder [−][src]
pub struct OptionBuilder(_);
Implementations
impl OptionBuilder
[src]
impl OptionBuilder
[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, this option is not checkable. Often browsers grey out such control and it won’t
receive any browsing event, like mouse clicks or focus-related ones. If this attribute
is not set, the element can still be disabled if one of its ancestors is a disabled
<optgroup>
element.
pub fn label(self, value: impl AttributeValue<String>) -> Self
[src]
This attribute is text for the label indicating the meaning of the option. If the label attribute isn’t defined, its value is that of the element text content.
pub fn selected(self, value: impl AttributeValue<bool>) -> Self
[src]
If present, indicates that the option is initially selected. If the <option>
element
is the descendant of a <select>
element whose multiple attribute is not set, only one
single <option>
of this <select>
element may have the selected attribute.
pub fn value(self, value: impl AttributeValue<String>) -> Self
[src]
The content of this attribute represents the value to be submitted with the form, should this option be selected. If this attribute is omitted, the value is taken from the text content of the option element.
impl OptionBuilder
[src]
impl OptionBuilder
[src]pub fn on_blur(
self,
f: impl 'static + FnMut(FocusEvent, HtmlOptionElement)
) -> Self
[src]
self,
f: impl 'static + FnMut(FocusEvent, HtmlOptionElement)
) -> Self
pub fn on_click(
self,
f: impl 'static + FnMut(MouseEvent, HtmlOptionElement)
) -> Self
[src]
self,
f: impl 'static + FnMut(MouseEvent, HtmlOptionElement)
) -> Self
pub fn on_change(
self,
f: impl 'static + FnMut(Event, HtmlOptionElement)
) -> Self
[src]
self,
f: impl 'static + FnMut(Event, HtmlOptionElement)
) -> Self
pub fn on_dblclick(
self,
f: impl 'static + FnMut(MouseEvent, HtmlOptionElement)
) -> Self
[src]
self,
f: impl 'static + FnMut(MouseEvent, HtmlOptionElement)
) -> Self
pub fn on_focusout(
self,
f: impl 'static + FnMut(FocusEvent, HtmlOptionElement)
) -> Self
[src]
self,
f: impl 'static + FnMut(FocusEvent, HtmlOptionElement)
) -> Self
pub fn on_input(
self,
f: impl 'static + FnMut(InputEvent, HtmlOptionElement)
) -> Self
[src]
self,
f: impl 'static + FnMut(InputEvent, HtmlOptionElement)
) -> Self
pub fn on_keydown(
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlOptionElement)
) -> Self
[src]
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlOptionElement)
) -> Self
pub fn on_keyup(
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlOptionElement)
) -> Self
[src]
self,
f: impl 'static + FnMut(KeyboardEvent, HtmlOptionElement)
) -> Self
pub fn effect(self, f: impl Effect<HtmlOptionElement>) -> Self
[src]
impl OptionBuilder
[src]
impl OptionBuilder
[src]Trait Implementations
impl Builder for OptionBuilder
[src]
impl Builder for OptionBuilder
[src]impl DomElement for OptionBuilder
[src]
impl DomElement for OptionBuilder
[src]type Target = HtmlOptionElement
fn dom_element(&self) -> Self::Target
[src]
impl From<OptionBuilder> for Element
[src]
impl From<OptionBuilder> for Element
[src]fn from(builder: OptionBuilder) -> Self
[src]
impl From<OptionBuilder> for ElementBuilder
[src]
impl From<OptionBuilder> for ElementBuilder
[src]fn from(builder: OptionBuilder) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for OptionBuilder
impl !RefUnwindSafe for OptionBuilder
impl !Send for OptionBuilder
impl !Send for OptionBuilder
impl !Sync for OptionBuilder
impl !Sync for OptionBuilder
impl Unpin for OptionBuilder
impl Unpin for OptionBuilder
impl !UnwindSafe for OptionBuilder
impl !UnwindSafe for OptionBuilder