Struct freya::prelude::ButtonProps
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§
§impl<'a> ButtonProps<'a>
impl<'a> ButtonProps<'a>
Trait Implementations§
§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.
§fn builder() -> <ButtonProps<'a> as Properties>::Builder
fn builder() -> <ButtonProps<'a> as Properties>::Builder
Create a builder for this component.
§unsafe fn memoize(&self, other: &ButtonProps<'a>) -> bool
unsafe fn memoize(&self, other: &ButtonProps<'a>) -> bool
Memoization can only happen if the props are valid for the ’static lifetime Read more
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