pub struct DatePickerButton<'a> { /* private fields */ }
Expand description
Shows a date, and will open a date picker popup when clicked.
Implementations§
source§impl<'a> DatePickerButton<'a>
impl<'a> DatePickerButton<'a>
pub fn new(selection: &'a mut NaiveDate) -> Self
sourcepub fn id_salt(self, id_salt: &'a str) -> Self
pub fn id_salt(self, id_salt: &'a str) -> Self
Add id source. Must be set if multiple date picker buttons are in the same Ui.
sourcepub fn id_source(self, id_salt: &'a str) -> Self
👎Deprecated: Renamed id_salt
pub fn id_source(self, id_salt: &'a str) -> Self
Add id source. Must be set if multiple date picker buttons are in the same Ui.
sourcepub fn combo_boxes(self, combo_boxes: bool) -> Self
pub fn combo_boxes(self, combo_boxes: bool) -> Self
Show combo boxes in date picker popup. (Default: true)
sourcepub fn calendar(self, calendar: bool) -> Self
pub fn calendar(self, calendar: bool) -> Self
Show calendar in date picker popup. (Default: true)
sourcepub fn calendar_week(self, week: bool) -> Self
pub fn calendar_week(self, week: bool) -> Self
Show calendar week in date picker popup. (Default: true)
sourcepub fn show_icon(self, show_icon: bool) -> Self
pub fn show_icon(self, show_icon: bool) -> Self
Show the calendar icon on the button. (Default: true)
sourcepub fn format(self, format: impl Into<String>) -> Self
pub fn format(self, format: impl Into<String>) -> Self
Change the format shown on the button. (Default: %Y-%m-%d)
See chrono::format::strftime
for valid formats.
sourcepub fn highlight_weekends(self, highlight_weekends: bool) -> Self
pub fn highlight_weekends(self, highlight_weekends: bool) -> Self
Highlight weekend days. (Default: true)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DatePickerButton<'a>
impl<'a> RefUnwindSafe for DatePickerButton<'a>
impl<'a> Send for DatePickerButton<'a>
impl<'a> Sync for DatePickerButton<'a>
impl<'a> Unpin for DatePickerButton<'a>
impl<'a> !UnwindSafe for DatePickerButton<'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
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