Trait HtmlButtonAttributes
pub trait HtmlButtonAttributes: Sized + SetAttribute {
// Provided methods
fn autofocus(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn disabled(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn form(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
fn formaction(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn formenctype(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn formmethod(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn formnovalidate(self, value: impl Into<MaybeDyn<bool>>) -> Self { ... }
fn formtarget(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
fn name(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
fn type(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self { ... }
fn value(
self,
value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>,
) -> Self { ... }
}
Expand description
Trait that provides attributes for the <button>
HTML element.
Provided Methods§
fn autofocus(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn disabled(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn form(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn formaction( self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>, ) -> Self
fn formenctype( self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>, ) -> Self
fn formmethod( self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>, ) -> Self
fn formnovalidate(self, value: impl Into<MaybeDyn<bool>>) -> Self
fn formtarget( self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>, ) -> Self
fn name(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn type(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
fn value(self, value: impl Into<MaybeDyn<Option<Cow<'static, str>>>>) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.