pub struct EuvDatePickerProps {
pub value: Signal<String>,
pub placeholder: &'static str,
pub label: &'static str,
pub min: &'static str,
pub max: &'static str,
pub on_change: Option<Rc<dyn Fn(&'static str)>>,
}Expand description
Props for the euv_date_picker component.
The selected date lives in a caller-owned Signal formatted as
YYYY-MM-DD; the month the panel shows and the open state of the panel
are owned by the component itself.
Fields§
§value: Signal<String>The selected date, formatted as YYYY-MM-DD.
An empty string means that nothing is selected yet.
placeholder: &'static strThe placeholder shown on the trigger while nothing is selected.
label: &'static strThe label rendered above the trigger.
An empty string renders the picker without a label.
min: &'static strThe earliest selectable date, formatted as YYYY-MM-DD.
An empty string means that there is no lower bound.
max: &'static strThe latest selectable date, formatted as YYYY-MM-DD.
An empty string means that there is no upper bound.
on_change: Option<Rc<dyn Fn(&'static str)>>The callback invoked with the new date after every change.
Trait Implementations§
Source§impl Clone for EuvDatePickerProps
impl Clone for EuvDatePickerProps
Source§impl Debug for EuvDatePickerProps
impl Debug for EuvDatePickerProps
Auto Trait Implementations§
impl !RefUnwindSafe for EuvDatePickerProps
impl !Send for EuvDatePickerProps
impl !Sync for EuvDatePickerProps
impl !UnwindSafe for EuvDatePickerProps
impl Freeze for EuvDatePickerProps
impl Unpin for EuvDatePickerProps
impl UnsafeUnpin for EuvDatePickerProps
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