Struct freya::components::ButtonProps
source · pub struct ButtonProps<'a> {
pub children: Option<VNode<'a>>,
pub onclick: Option<EventHandler<'a, Event<MouseData>>>,
}
Expand description
Button
component properties.
Fields§
§children: Option<VNode<'a>>
Inner children for the Button.
onclick: Option<EventHandler<'a, Event<MouseData>>>
Handler for the onclick
event.
Implementations§
Trait Implementations§
source§impl<'a> Properties for ButtonProps<'a>
impl<'a> Properties for ButtonProps<'a>
§type Builder = ButtonPropsBuilder<'a, ((), ())>
type Builder = ButtonPropsBuilder<'a, ((), ())>
The type of the builder for this component.
Used to create “in-progress” versions of the props.
source§fn builder() -> <ButtonProps<'a> as Properties>::Builder
fn builder() -> <ButtonProps<'a> as Properties>::Builder
Create a builder for this component.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ButtonProps<'a>
impl<'a> !Send for ButtonProps<'a>
impl<'a> !Sync for ButtonProps<'a>
impl<'a> Unpin for ButtonProps<'a>
impl<'a> !UnwindSafe for ButtonProps<'a>
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