Struct silkenweb::elements::SelectBuilder [−][src]
pub struct SelectBuilder(_);
Implementations
impl SelectBuilder
[src]
impl SelectBuilder
[src]pub fn id(self, value: impl AttributeValue<String>) -> SelectBuilder
[src]
pub fn class(self, value: impl AttributeValue<String>) -> SelectBuilder
[src]
pub fn autocomplete(self, value: impl AttributeValue<String>) -> SelectBuilder
[src]
A DOMString providing a hint for a user agent’s autocomplete feature.
pub fn autofocus(self, value: impl AttributeValue<bool>) -> SelectBuilder
[src]
Lets you specify that a form control should have input focus when the page loads. Only one form element in a document can have the autofocus attribute.
pub fn disabled(self, value: impl AttributeValue<bool>) -> SelectBuilder
[src]
Indicates that the user cannot interact with the control. If this attribute is not
specified, the control inherits its setting from the containing element, for example
<fieldset>
; if there is no containing element with the disabled attribute set, then
the control is enabled.
pub fn form(self, value: impl AttributeValue<String>) -> SelectBuilder
[src]
The <form>
element to associate the <select>
with (its form owner). The value of
this attribute must be the id of a <form>
in the same document. (If this attribute is
not set, the <select>
is associated with its ancestor <form>
element, if any.)
This attribute lets you associate <select>
elements to <form>
s anywhere in the
document, not just inside a <form>
. It can also override an ancestor <form>
element.
pub fn multiple(self, value: impl AttributeValue<bool>) -> SelectBuilder
[src]
Indicates that multiple options can be selected in the list. If it is not specified, then only one option can be selected at a time. When multiple is specified, most browsers will show a scrolling list box instead of a single line dropdown.
pub fn name(self, value: impl AttributeValue<String>) -> SelectBuilder
[src]
This attribute is used to specify the name of the control.
pub fn required(self, value: impl AttributeValue<bool>) -> SelectBuilder
[src]
Indicates that an option with a non-empty string value must be selected.
pub fn size(self, value: impl AttributeValue<String>) -> SelectBuilder
[src]
If the control is presented as a scrolling list box (e.g. when multiple is specified), this attribute represents the number of rows in the list that should be visible at one time. Browsers are not required to present a select element as a scrolled list box. The default value is 0.
impl SelectBuilder
[src]
impl SelectBuilder
[src]pub fn on_blur(
self,
f: impl FnMut(FocusEvent, HtmlSelectElement) + 'static
) -> SelectBuilder
[src]
self,
f: impl FnMut(FocusEvent, HtmlSelectElement) + 'static
) -> SelectBuilder
pub fn on_click(
self,
f: impl FnMut(MouseEvent, HtmlSelectElement) + 'static
) -> SelectBuilder
[src]
self,
f: impl FnMut(MouseEvent, HtmlSelectElement) + 'static
) -> SelectBuilder
pub fn on_change(
self,
f: impl FnMut(Event, HtmlSelectElement) + 'static
) -> SelectBuilder
[src]
self,
f: impl FnMut(Event, HtmlSelectElement) + 'static
) -> SelectBuilder
pub fn on_dblclick(
self,
f: impl FnMut(MouseEvent, HtmlSelectElement) + 'static
) -> SelectBuilder
[src]
self,
f: impl FnMut(MouseEvent, HtmlSelectElement) + 'static
) -> SelectBuilder
pub fn on_focusout(
self,
f: impl FnMut(FocusEvent, HtmlSelectElement) + 'static
) -> SelectBuilder
[src]
self,
f: impl FnMut(FocusEvent, HtmlSelectElement) + 'static
) -> SelectBuilder
pub fn on_input(
self,
f: impl FnMut(InputEvent, HtmlSelectElement) + 'static
) -> SelectBuilder
[src]
self,
f: impl FnMut(InputEvent, HtmlSelectElement) + 'static
) -> SelectBuilder
pub fn on_keydown(
self,
f: impl FnMut(KeyboardEvent, HtmlSelectElement) + 'static
) -> SelectBuilder
[src]
self,
f: impl FnMut(KeyboardEvent, HtmlSelectElement) + 'static
) -> SelectBuilder
pub fn on_keyup(
self,
f: impl FnMut(KeyboardEvent, HtmlSelectElement) + 'static
) -> SelectBuilder
[src]
self,
f: impl FnMut(KeyboardEvent, HtmlSelectElement) + 'static
) -> SelectBuilder
pub fn effect(self, f: impl Effect<HtmlSelectElement>) -> SelectBuilder
[src]
impl SelectBuilder
[src]
impl SelectBuilder
[src]pub fn text(self, child: impl Text) -> SelectBuilder
[src]
pub fn child<Child>(self, c: Child) -> SelectBuilder where
Child: Into<Element>,
[src]
Child: Into<Element>,
Trait Implementations
impl Builder for SelectBuilder
[src]
impl Builder for SelectBuilder
[src]type Target = Select
pub fn build(self) -> <SelectBuilder as Builder>::Target
[src]
pub fn into_element(self) -> Element
[src]
impl DomElement for SelectBuilder
[src]
impl DomElement for SelectBuilder
[src]type Target = HtmlSelectElement
pub fn dom_element(&self) -> <SelectBuilder as DomElement>::Target
[src]
impl From<SelectBuilder> for Element
[src]
impl From<SelectBuilder> for Element
[src]pub fn from(builder: SelectBuilder) -> Element
[src]
impl From<SelectBuilder> for ElementBuilder
[src]
impl From<SelectBuilder> for ElementBuilder
[src]pub fn from(builder: SelectBuilder) -> ElementBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SelectBuilder
impl !RefUnwindSafe for SelectBuilder
impl !Send for SelectBuilder
impl !Send for SelectBuilder
impl !Sync for SelectBuilder
impl !Sync for SelectBuilder
impl Unpin for SelectBuilder
impl Unpin for SelectBuilder
impl !UnwindSafe for SelectBuilder
impl !UnwindSafe for SelectBuilder