pub struct DatePickerOptions {
pub text_input_mode: bool,
pub min_date: Option<[i32; 3]>,
pub max_date: Option<[i32; 3]>,
}Expand description
Optional constraints & mode configuration for Frame::calendar_grid_with_options and
Frame::date_picker_with_options.
Fields§
§text_input_mode: boolWhen true, renders direct text-entry mode instead of the visual calendar grid.
min_date: Option<[i32; 3]>Optional inclusive minimum selectable date [year, month, day].
max_date: Option<[i32; 3]>Optional inclusive maximum selectable date [year, month, day].
Implementations§
Source§impl DatePickerOptions
impl DatePickerOptions
Sourcepub fn is_disabled(&self, date: [i32; 3]) -> bool
pub fn is_disabled(&self, date: [i32; 3]) -> bool
Returns true if date is disabled by min_date/max_date.
Trait Implementations§
Source§impl Clone for DatePickerOptions
impl Clone for DatePickerOptions
impl Copy for DatePickerOptions
Source§impl Debug for DatePickerOptions
impl Debug for DatePickerOptions
Auto Trait Implementations§
impl Forget for DatePickerOptions
impl Freeze for DatePickerOptions
impl Move for DatePickerOptions
impl RefUnwindSafe for DatePickerOptions
impl Send for DatePickerOptions
impl Sync for DatePickerOptions
impl Unpin for DatePickerOptions
impl UnsafeUnpin for DatePickerOptions
impl UnwindSafe for DatePickerOptions
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