Struct web_sys::HtmlSelectElement
source · #[repr(transparent)]pub struct HtmlSelectElement { /* private fields */ }
Expand description
The HTMLSelectElement
object
This API requires the following crate features to be activated: HtmlSelectElement
Implementations§
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn add_with_html_option_element(
&self,
element: &HtmlOptionElement
) -> Result<(), JsValue>
pub fn add_with_html_option_element(
&self,
element: &HtmlOptionElement
) -> Result<(), JsValue>
The add()
method
This API requires the following crate features to be activated: HtmlOptionElement
, HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn add_with_html_opt_group_element(
&self,
element: &HtmlOptGroupElement
) -> Result<(), JsValue>
pub fn add_with_html_opt_group_element(
&self,
element: &HtmlOptGroupElement
) -> Result<(), JsValue>
The add()
method
This API requires the following crate features to be activated: HtmlOptGroupElement
, HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn add_with_html_option_element_and_opt_html_element(
&self,
element: &HtmlOptionElement,
before: Option<&HtmlElement>
) -> Result<(), JsValue>
pub fn add_with_html_option_element_and_opt_html_element(
&self,
element: &HtmlOptionElement,
before: Option<&HtmlElement>
) -> Result<(), JsValue>
The add()
method
This API requires the following crate features to be activated: HtmlElement
, HtmlOptionElement
, HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn add_with_html_opt_group_element_and_opt_html_element(
&self,
element: &HtmlOptGroupElement,
before: Option<&HtmlElement>
) -> Result<(), JsValue>
pub fn add_with_html_opt_group_element_and_opt_html_element(
&self,
element: &HtmlOptGroupElement,
before: Option<&HtmlElement>
) -> Result<(), JsValue>
The add()
method
This API requires the following crate features to be activated: HtmlElement
, HtmlOptGroupElement
, HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn add_with_html_option_element_and_opt_i32(
&self,
element: &HtmlOptionElement,
before: Option<i32>
) -> Result<(), JsValue>
pub fn add_with_html_option_element_and_opt_i32(
&self,
element: &HtmlOptionElement,
before: Option<i32>
) -> Result<(), JsValue>
The add()
method
This API requires the following crate features to be activated: HtmlOptionElement
, HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn add_with_html_opt_group_element_and_opt_i32(
&self,
element: &HtmlOptGroupElement,
before: Option<i32>
) -> Result<(), JsValue>
pub fn add_with_html_opt_group_element_and_opt_i32(
&self,
element: &HtmlOptGroupElement,
before: Option<i32>
) -> Result<(), JsValue>
The add()
method
This API requires the following crate features to be activated: HtmlOptGroupElement
, HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn check_validity(&self) -> bool
pub fn check_validity(&self) -> bool
The checkValidity()
method
This API requires the following crate features to be activated: HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn named_item(&self, name: &str) -> Option<HtmlOptionElement>
pub fn named_item(&self, name: &str) -> Option<HtmlOptionElement>
The namedItem()
method
This API requires the following crate features to be activated: HtmlOptionElement
, HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn report_validity(&self) -> bool
pub fn report_validity(&self) -> bool
The reportValidity()
method
This API requires the following crate features to be activated: HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn set_custom_validity(&self, error: &str)
pub fn set_custom_validity(&self, error: &str)
The setCustomValidity()
method
This API requires the following crate features to be activated: HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn set_autofocus(&self, autofocus: bool)
pub fn set_autofocus(&self, autofocus: bool)
The autofocus
setter
This API requires the following crate features to be activated: HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn autocomplete(&self) -> String
pub fn autocomplete(&self) -> String
The autocomplete
getter
This API requires the following crate features to be activated: HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn set_autocomplete(&self, autocomplete: &str)
pub fn set_autocomplete(&self, autocomplete: &str)
The autocomplete
setter
This API requires the following crate features to be activated: HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn set_disabled(&self, disabled: bool)
pub fn set_disabled(&self, disabled: bool)
The disabled
setter
This API requires the following crate features to be activated: HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn form(&self) -> Option<HtmlFormElement>
pub fn form(&self) -> Option<HtmlFormElement>
The form
getter
This API requires the following crate features to be activated: HtmlFormElement
, HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn set_multiple(&self, multiple: bool)
pub fn set_multiple(&self, multiple: bool)
The multiple
setter
This API requires the following crate features to be activated: HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn set_required(&self, required: bool)
pub fn set_required(&self, required: bool)
The required
setter
This API requires the following crate features to be activated: HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn options(&self) -> HtmlOptionsCollection
pub fn options(&self) -> HtmlOptionsCollection
The options
getter
This API requires the following crate features to be activated: HtmlOptionsCollection
, HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn set_length(&self, length: u32)
pub fn set_length(&self, length: u32)
The length
setter
This API requires the following crate features to be activated: HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn selected_options(&self) -> HtmlCollection
pub fn selected_options(&self) -> HtmlCollection
The selectedOptions
getter
This API requires the following crate features to be activated: HtmlCollection
, HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn selected_index(&self) -> i32
pub fn selected_index(&self) -> i32
The selectedIndex
getter
This API requires the following crate features to be activated: HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn set_selected_index(&self, selected_index: i32)
pub fn set_selected_index(&self, selected_index: i32)
The selectedIndex
setter
This API requires the following crate features to be activated: HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn will_validate(&self) -> bool
pub fn will_validate(&self) -> bool
The willValidate
getter
This API requires the following crate features to be activated: HtmlSelectElement
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn validity(&self) -> ValidityState
pub fn validity(&self) -> ValidityState
The validity
getter
This API requires the following crate features to be activated: HtmlSelectElement
, ValidityState
source§impl HtmlSelectElement
impl HtmlSelectElement
sourcepub fn validation_message(&self) -> Result<String, JsValue>
pub fn validation_message(&self) -> Result<String, JsValue>
The validationMessage
getter
This API requires the following crate features to be activated: HtmlSelectElement
Trait Implementations§
source§impl AsRef<Element> for HtmlSelectElement
impl AsRef<Element> for HtmlSelectElement
source§impl AsRef<EventTarget> for HtmlSelectElement
impl AsRef<EventTarget> for HtmlSelectElement
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<HtmlElement> for HtmlSelectElement
impl AsRef<HtmlElement> for HtmlSelectElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<JsValue> for HtmlSelectElement
impl AsRef<JsValue> for HtmlSelectElement
source§impl AsRef<Node> for HtmlSelectElement
impl AsRef<Node> for HtmlSelectElement
source§impl AsRef<Object> for HtmlSelectElement
impl AsRef<Object> for HtmlSelectElement
source§impl Clone for HtmlSelectElement
impl Clone for HtmlSelectElement
source§fn clone(&self) -> HtmlSelectElement
fn clone(&self) -> HtmlSelectElement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HtmlSelectElement
impl Debug for HtmlSelectElement
source§impl From<HtmlSelectElement> for Element
impl From<HtmlSelectElement> for Element
source§fn from(obj: HtmlSelectElement) -> Element
fn from(obj: HtmlSelectElement) -> Element
source§impl From<HtmlSelectElement> for EventTarget
impl From<HtmlSelectElement> for EventTarget
source§fn from(obj: HtmlSelectElement) -> EventTarget
fn from(obj: HtmlSelectElement) -> EventTarget
source§impl From<HtmlSelectElement> for HtmlElement
impl From<HtmlSelectElement> for HtmlElement
source§fn from(obj: HtmlSelectElement) -> HtmlElement
fn from(obj: HtmlSelectElement) -> HtmlElement
source§impl From<HtmlSelectElement> for JsValue
impl From<HtmlSelectElement> for JsValue
source§fn from(obj: HtmlSelectElement) -> JsValue
fn from(obj: HtmlSelectElement) -> JsValue
source§impl From<HtmlSelectElement> for Node
impl From<HtmlSelectElement> for Node
source§fn from(obj: HtmlSelectElement) -> Node
fn from(obj: HtmlSelectElement) -> Node
source§impl From<HtmlSelectElement> for Object
impl From<HtmlSelectElement> for Object
source§fn from(obj: HtmlSelectElement) -> Object
fn from(obj: HtmlSelectElement) -> Object
source§impl From<JsValue> for HtmlSelectElement
impl From<JsValue> for HtmlSelectElement
source§fn from(obj: JsValue) -> HtmlSelectElement
fn from(obj: JsValue) -> HtmlSelectElement
source§impl FromWasmAbi for HtmlSelectElement
impl FromWasmAbi for HtmlSelectElement
source§impl<'a> IntoWasmAbi for &'a HtmlSelectElement
impl<'a> IntoWasmAbi for &'a HtmlSelectElement
source§impl IntoWasmAbi for HtmlSelectElement
impl IntoWasmAbi for HtmlSelectElement
source§impl JsCast for HtmlSelectElement
impl JsCast for HtmlSelectElement
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl<'a> OptionIntoWasmAbi for &'a HtmlSelectElement
impl<'a> OptionIntoWasmAbi for &'a HtmlSelectElement
source§impl RefFromWasmAbi for HtmlSelectElement
impl RefFromWasmAbi for HtmlSelectElement
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<HtmlSelectElement>
type Anchor = ManuallyDrop<HtmlSelectElement>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for HtmlSelectElement
impl Send for HtmlSelectElement
impl Sync for HtmlSelectElement
impl Unpin for HtmlSelectElement
impl UnwindSafe for HtmlSelectElement
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more