Struct web_sys::HtmlButtonElement
source · #[repr(transparent)]pub struct HtmlButtonElement { /* private fields */ }
Expand description
The HTMLButtonElement
object
This API requires the following crate features to be activated: HtmlButtonElement
Implementations§
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
, HtmlFormElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
source§impl HtmlButtonElement
impl HtmlButtonElement
sourcepub fn validity(&self) -> ValidityState
pub fn validity(&self) -> ValidityState
The validity
getter
This API requires the following crate features to be activated: HtmlButtonElement
, ValidityState
source§impl HtmlButtonElement
impl HtmlButtonElement
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: HtmlButtonElement
Trait Implementations§
source§impl AsRef<Element> for HtmlButtonElement
impl AsRef<Element> for HtmlButtonElement
source§impl AsRef<EventTarget> for HtmlButtonElement
impl AsRef<EventTarget> for HtmlButtonElement
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<HtmlElement> for HtmlButtonElement
impl AsRef<HtmlElement> for HtmlButtonElement
source§fn as_ref(&self) -> &HtmlElement
fn as_ref(&self) -> &HtmlElement
source§impl AsRef<JsValue> for HtmlButtonElement
impl AsRef<JsValue> for HtmlButtonElement
source§impl AsRef<Node> for HtmlButtonElement
impl AsRef<Node> for HtmlButtonElement
source§impl AsRef<Object> for HtmlButtonElement
impl AsRef<Object> for HtmlButtonElement
source§impl Clone for HtmlButtonElement
impl Clone for HtmlButtonElement
source§fn clone(&self) -> HtmlButtonElement
fn clone(&self) -> HtmlButtonElement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HtmlButtonElement
impl Debug for HtmlButtonElement
source§impl From<HtmlButtonElement> for Element
impl From<HtmlButtonElement> for Element
source§fn from(obj: HtmlButtonElement) -> Element
fn from(obj: HtmlButtonElement) -> Element
source§impl From<HtmlButtonElement> for EventTarget
impl From<HtmlButtonElement> for EventTarget
source§fn from(obj: HtmlButtonElement) -> EventTarget
fn from(obj: HtmlButtonElement) -> EventTarget
source§impl From<HtmlButtonElement> for HtmlElement
impl From<HtmlButtonElement> for HtmlElement
source§fn from(obj: HtmlButtonElement) -> HtmlElement
fn from(obj: HtmlButtonElement) -> HtmlElement
source§impl From<HtmlButtonElement> for JsValue
impl From<HtmlButtonElement> for JsValue
source§fn from(obj: HtmlButtonElement) -> JsValue
fn from(obj: HtmlButtonElement) -> JsValue
source§impl From<HtmlButtonElement> for Node
impl From<HtmlButtonElement> for Node
source§fn from(obj: HtmlButtonElement) -> Node
fn from(obj: HtmlButtonElement) -> Node
source§impl From<HtmlButtonElement> for Object
impl From<HtmlButtonElement> for Object
source§fn from(obj: HtmlButtonElement) -> Object
fn from(obj: HtmlButtonElement) -> Object
source§impl From<JsValue> for HtmlButtonElement
impl From<JsValue> for HtmlButtonElement
source§fn from(obj: JsValue) -> HtmlButtonElement
fn from(obj: JsValue) -> HtmlButtonElement
source§impl FromWasmAbi for HtmlButtonElement
impl FromWasmAbi for HtmlButtonElement
source§impl<'a> IntoWasmAbi for &'a HtmlButtonElement
impl<'a> IntoWasmAbi for &'a HtmlButtonElement
source§impl IntoWasmAbi for HtmlButtonElement
impl IntoWasmAbi for HtmlButtonElement
source§impl JsCast for HtmlButtonElement
impl JsCast for HtmlButtonElement
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 HtmlButtonElement
impl<'a> OptionIntoWasmAbi for &'a HtmlButtonElement
source§impl RefFromWasmAbi for HtmlButtonElement
impl RefFromWasmAbi for HtmlButtonElement
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<HtmlButtonElement>
type Anchor = ManuallyDrop<HtmlButtonElement>
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 HtmlButtonElement
impl Send for HtmlButtonElement
impl Sync for HtmlButtonElement
impl Unpin for HtmlButtonElement
impl UnwindSafe for HtmlButtonElement
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