pub struct ControlButtonProps {Show 14 fields
pub type: ButtonType,
pub on_click: EventHandler<()>,
pub on_mouse_over: EventHandler<()>,
pub on_mouse_out: EventHandler<()>,
pub on_focus: EventHandler<FocusEvent>,
pub on_blur: EventHandler<FocusEvent>,
pub style: &'static str,
pub class: &'static str,
pub svg_class: &'static str,
pub path_class: &'static str,
pub button_type: &'static str,
pub aria_label: &'static str,
pub title: &'static str,
pub tabindex: &'static str,
}
Available on crate feature
dio
only.Fieldsยง
ยงtype: ButtonType
ยงon_click: EventHandler<()>
ยงon_mouse_over: EventHandler<()>
ยงon_mouse_out: EventHandler<()>
ยงon_focus: EventHandler<FocusEvent>
ยงon_blur: EventHandler<FocusEvent>
ยงstyle: &'static str
ยงclass: &'static str
ยงsvg_class: &'static str
ยงpath_class: &'static str
ยงaria_label: &'static str
ยงtitle: &'static str
ยงtabindex: &'static str
Implementationsยง
Sourceยงimpl ControlButtonProps
impl ControlButtonProps
Sourcepub fn builder() -> ControlButtonPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> ControlButtonPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building ControlButtonProps
.
On the builder, call .r#type(...)
, .on_click(...)
(optional), .on_mouse_over(...)
(optional), .on_mouse_out(...)
(optional), .on_focus(...)
(optional), .on_blur(...)
(optional), .style(...)
(optional), .class(...)
(optional), .svg_class(...)
(optional), .path_class(...)
(optional), .button_type(...)
(optional), .aria_label(...)
(optional), .title(...)
(optional), .tabindex(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ControlButtonProps
.
Trait Implementationsยง
Sourceยงimpl Clone for ControlButtonProps
impl Clone for ControlButtonProps
Sourceยงfn clone(&self) -> ControlButtonProps
fn clone(&self) -> ControlButtonProps
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSourceยงimpl PartialEq for ControlButtonProps
impl PartialEq for ControlButtonProps
Sourceยงimpl Properties for ControlButtonPropswhere
Self: Clone,
impl Properties for ControlButtonPropswhere
Self: Clone,
Sourceยงtype Builder = ControlButtonPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
type Builder = ControlButtonPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
The type of the builder for this component.
Used to create โin-progressโ versions of the props.
Sourceยงfn memoize(&mut self, new: &Self) -> bool
fn memoize(&mut self, new: &Self) -> bool
Make the old props equal to the new props. Return if the props were equal and should be memoized.
Sourceยงfn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
) -> VComponentwhere
M: 'static,
fn into_vcomponent<M>(
self,
render_fn: impl ComponentFunction<Self, M>,
) -> VComponentwhere
M: 'static,
Create a component from the props.
impl StructuralPartialEq for ControlButtonProps
Auto Trait Implementationsยง
impl Freeze for ControlButtonProps
impl !RefUnwindSafe for ControlButtonProps
impl !Send for ControlButtonProps
impl !Sync for ControlButtonProps
impl Unpin for ControlButtonProps
impl !UnwindSafe for ControlButtonProps
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Sourceยงfn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Sourceยงfn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Sourceยงimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Sourceยงfn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.Sourceยงimpl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Sourceยงimpl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Sourceยงfn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Sourceยงimpl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Sourceยงfn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.