Struct web_sys::HtmlInputElement
source · #[repr(transparent)]pub struct HtmlInputElement { /* private fields */ }
Expand description
The HTMLInputElement
object
This API requires the following crate features to be activated: HtmlInputElement
Implementations§
source§impl HtmlInputElement
impl HtmlInputElement
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: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
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: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
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: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_accept(&self, accept: &str)
pub fn set_accept(&self, accept: &str)
The accept
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn autocomplete(&self) -> String
pub fn autocomplete(&self) -> String
The autocomplete
getter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
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: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
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: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn default_checked(&self) -> bool
pub fn default_checked(&self) -> bool
The defaultChecked
getter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_default_checked(&self, default_checked: bool)
pub fn set_default_checked(&self, default_checked: bool)
The defaultChecked
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_checked(&self, checked: bool)
pub fn set_checked(&self, checked: bool)
The checked
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
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: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
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
, HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn form_action(&self) -> String
pub fn form_action(&self) -> String
The formAction
getter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_form_action(&self, form_action: &str)
pub fn set_form_action(&self, form_action: &str)
The formAction
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn form_enctype(&self) -> String
pub fn form_enctype(&self) -> String
The formEnctype
getter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_form_enctype(&self, form_enctype: &str)
pub fn set_form_enctype(&self, form_enctype: &str)
The formEnctype
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn form_method(&self) -> String
pub fn form_method(&self) -> String
The formMethod
getter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_form_method(&self, form_method: &str)
pub fn set_form_method(&self, form_method: &str)
The formMethod
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn form_no_validate(&self) -> bool
pub fn form_no_validate(&self) -> bool
The formNoValidate
getter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_form_no_validate(&self, form_no_validate: bool)
pub fn set_form_no_validate(&self, form_no_validate: bool)
The formNoValidate
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn form_target(&self) -> String
pub fn form_target(&self) -> String
The formTarget
getter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_form_target(&self, form_target: &str)
pub fn set_form_target(&self, form_target: &str)
The formTarget
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_height(&self, height: u32)
pub fn set_height(&self, height: u32)
The height
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn indeterminate(&self) -> bool
pub fn indeterminate(&self) -> bool
The indeterminate
getter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_indeterminate(&self, indeterminate: bool)
pub fn set_indeterminate(&self, indeterminate: bool)
The indeterminate
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn input_mode(&self) -> String
pub fn input_mode(&self) -> String
The inputMode
getter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_input_mode(&self, input_mode: &str)
pub fn set_input_mode(&self, input_mode: &str)
The inputMode
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn list(&self) -> Option<HtmlElement>
pub fn list(&self) -> Option<HtmlElement>
The list
getter
This API requires the following crate features to be activated: HtmlElement
, HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn max_length(&self) -> i32
pub fn max_length(&self) -> i32
The maxLength
getter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_max_length(&self, max_length: i32)
pub fn set_max_length(&self, max_length: i32)
The maxLength
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn min_length(&self) -> i32
pub fn min_length(&self) -> i32
The minLength
getter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_min_length(&self, min_length: i32)
pub fn set_min_length(&self, min_length: i32)
The minLength
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
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: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_pattern(&self, pattern: &str)
pub fn set_pattern(&self, pattern: &str)
The pattern
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn placeholder(&self) -> String
pub fn placeholder(&self) -> String
The placeholder
getter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_placeholder(&self, placeholder: &str)
pub fn set_placeholder(&self, placeholder: &str)
The placeholder
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_read_only(&self, read_only: bool)
pub fn set_read_only(&self, read_only: bool)
The readOnly
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
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: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn default_value(&self) -> String
pub fn default_value(&self) -> String
The defaultValue
getter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_default_value(&self, default_value: &str)
pub fn set_default_value(&self, default_value: &str)
The defaultValue
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn value_as_number(&self) -> f64
pub fn value_as_number(&self) -> f64
The valueAsNumber
getter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_value_as_number(&self, value_as_number: f64)
pub fn set_value_as_number(&self, value_as_number: f64)
The valueAsNumber
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
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: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn validity(&self) -> ValidityState
pub fn validity(&self) -> ValidityState
The validity
getter
This API requires the following crate features to be activated: HtmlInputElement
, ValidityState
source§impl HtmlInputElement
impl HtmlInputElement
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: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_use_map(&self, use_map: &str)
pub fn set_use_map(&self, use_map: &str)
The useMap
setter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn webkitdirectory(&self) -> bool
pub fn webkitdirectory(&self) -> bool
The webkitdirectory
getter
This API requires the following crate features to be activated: HtmlInputElement
source§impl HtmlInputElement
impl HtmlInputElement
sourcepub fn set_webkitdirectory(&self, webkitdirectory: bool)
pub fn set_webkitdirectory(&self, webkitdirectory: bool)
The webkitdirectory
setter
This API requires the following crate features to be activated: HtmlInputElement
Trait Implementations§
source§impl AsRef<Element> for HtmlInputElement
impl AsRef<Element> for HtmlInputElement
source§impl AsRef<EventTarget> for HtmlInputElement
impl AsRef<EventTarget> for HtmlInputElement
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<HtmlElement> for HtmlInputElement
impl AsRef<HtmlElement> for HtmlInputElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<JsValue> for HtmlInputElement
impl AsRef<JsValue> for HtmlInputElement
source§impl AsRef<Node> for HtmlInputElement
impl AsRef<Node> for HtmlInputElement
source§impl AsRef<Object> for HtmlInputElement
impl AsRef<Object> for HtmlInputElement
source§impl Clone for HtmlInputElement
impl Clone for HtmlInputElement
source§fn clone(&self) -> HtmlInputElement
fn clone(&self) -> HtmlInputElement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HtmlInputElement
impl Debug for HtmlInputElement
source§impl From<HtmlInputElement> for Element
impl From<HtmlInputElement> for Element
source§fn from(obj: HtmlInputElement) -> Element
fn from(obj: HtmlInputElement) -> Element
source§impl From<HtmlInputElement> for EventTarget
impl From<HtmlInputElement> for EventTarget
source§fn from(obj: HtmlInputElement) -> EventTarget
fn from(obj: HtmlInputElement) -> EventTarget
source§impl From<HtmlInputElement> for HtmlElement
impl From<HtmlInputElement> for HtmlElement
source§fn from(obj: HtmlInputElement) -> HtmlElement
fn from(obj: HtmlInputElement) -> HtmlElement
source§impl From<HtmlInputElement> for JsValue
impl From<HtmlInputElement> for JsValue
source§fn from(obj: HtmlInputElement) -> JsValue
fn from(obj: HtmlInputElement) -> JsValue
source§impl From<HtmlInputElement> for Node
impl From<HtmlInputElement> for Node
source§fn from(obj: HtmlInputElement) -> Node
fn from(obj: HtmlInputElement) -> Node
source§impl From<HtmlInputElement> for Object
impl From<HtmlInputElement> for Object
source§fn from(obj: HtmlInputElement) -> Object
fn from(obj: HtmlInputElement) -> Object
source§impl From<JsValue> for HtmlInputElement
impl From<JsValue> for HtmlInputElement
source§fn from(obj: JsValue) -> HtmlInputElement
fn from(obj: JsValue) -> HtmlInputElement
source§impl FromWasmAbi for HtmlInputElement
impl FromWasmAbi for HtmlInputElement
source§impl<'a> IntoWasmAbi for &'a HtmlInputElement
impl<'a> IntoWasmAbi for &'a HtmlInputElement
source§impl IntoWasmAbi for HtmlInputElement
impl IntoWasmAbi for HtmlInputElement
source§impl JsCast for HtmlInputElement
impl JsCast for HtmlInputElement
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 OptionFromWasmAbi for HtmlInputElement
impl OptionFromWasmAbi for HtmlInputElement
source§impl<'a> OptionIntoWasmAbi for &'a HtmlInputElement
impl<'a> OptionIntoWasmAbi for &'a HtmlInputElement
source§impl OptionIntoWasmAbi for HtmlInputElement
impl OptionIntoWasmAbi for HtmlInputElement
source§impl RefFromWasmAbi for HtmlInputElement
impl RefFromWasmAbi for HtmlInputElement
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<HtmlInputElement>
type Anchor = ManuallyDrop<HtmlInputElement>
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 HtmlInputElement
impl !Send for HtmlInputElement
impl !Sync for HtmlInputElement
impl Unpin for HtmlInputElement
impl UnwindSafe for HtmlInputElement
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