pub struct EuvCalendarDayButtonProps {
pub day: u32,
pub selected: bool,
pub disabled: bool,
pub on_select: Option<Rc<dyn Fn(u32)>>,
}Expand description
Props of the euv_calendar_day_button component.
The day button is the clickable cell of the grid. It reports whether the day is the chosen one and whether it can be picked at all.
Fields§
§day: u32The day-of-month number shown inside the cell.
selected: boolWhether the day is the chosen one.
disabled: boolWhether the day refuses to be picked.
on_select: Option<Rc<dyn Fn(u32)>>Optional callback fired when the cell is clicked.
Trait Implementations§
Source§impl Clone for EuvCalendarDayButtonProps
impl Clone for EuvCalendarDayButtonProps
Source§impl Debug for EuvCalendarDayButtonProps
impl Debug for EuvCalendarDayButtonProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvCalendarDayButtonProps
impl !Send for EuvCalendarDayButtonProps
impl !Sync for EuvCalendarDayButtonProps
impl !UnwindSafe for EuvCalendarDayButtonProps
impl Forget for EuvCalendarDayButtonProps
impl Freeze for EuvCalendarDayButtonProps
impl Move for EuvCalendarDayButtonProps
impl Unpin for EuvCalendarDayButtonProps
impl UnsafeUnpin for EuvCalendarDayButtonProps
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