pub struct DateTimePicker { /* private fields */ }Implementations§
Source§impl DateTimePicker
impl DateTimePicker
pub fn new() -> Self
pub fn id(self, id: impl Into<SharedString>) -> Self
pub fn picker_type(self, picker_type: DateTimePickerType) -> Self
pub fn date_time(self) -> Self
pub fn date_time_range(self) -> Self
pub fn value(self, value: DateTimeValue) -> Self
pub fn range(self, start: DateTimeValue, end: DateTimeValue) -> Self
pub fn placeholder(self, placeholder: impl Into<SharedString>) -> Self
pub fn format(self, format: impl Into<SharedString>) -> Self
pub fn range_separator(self, separator: impl Into<SharedString>) -> Self
pub fn width(self, width: impl Into<Pixels>) -> Self
pub fn width_md(self) -> Self
pub fn width_lg(self) -> Self
pub fn disabled(self, disabled: bool) -> Self
pub fn minute_step(self, step: u32) -> Self
pub fn second_step(self, step: u32) -> Self
pub fn without_seconds(self) -> Self
pub fn close_on_escape(self, close: bool) -> Self
pub fn close_on_click_outside(self, close: bool) -> Self
pub fn register_key_bindings(cx: &mut App)
pub fn on_change( self, f: impl Fn(Option<DateTimeValue>, &mut Window, &mut App) + 'static, ) -> Self
pub fn on_range_change( self, f: impl Fn(Option<DateTimeValue>, Option<DateTimeValue>, &mut Window, &mut App) + 'static, ) -> Self
pub fn on_selection_change( self, f: impl Fn(DateTimePickerSelection, &mut Window, &mut App) + 'static, ) -> Self
pub fn value_ref(&self) -> Option<DateTimeValue>
pub fn range_ref(&self) -> (Option<DateTimeValue>, Option<DateTimeValue>)
Trait Implementations§
Source§impl Render for DateTimePicker
impl Render for DateTimePicker
Auto Trait Implementations§
impl !RefUnwindSafe for DateTimePicker
impl !Send for DateTimePicker
impl !Sync for DateTimePicker
impl !UnwindSafe for DateTimePicker
impl Freeze for DateTimePicker
impl Unpin for DateTimePicker
impl UnsafeUnpin for DateTimePicker
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more