pub struct DatePickerBuilder { /* private fields */ }Expand description
Configuration handle returned by date_picker.
Implementations§
Source§impl DatePickerBuilder
impl DatePickerBuilder
Sourcepub fn modifier(&self, value: Modifier) -> Self
pub fn modifier(&self, value: Modifier) -> Self
Configure modifier before this component executes.
Sourcepub fn modifier_optional(&self, value: Option<Modifier>) -> Self
pub fn modifier_optional(&self, value: Option<Modifier>) -> Self
Configure modifier before this component executes.
Sourcepub fn initial_selected_date(&self, value: CalendarDate) -> Self
pub fn initial_selected_date(&self, value: CalendarDate) -> Self
Configure initial_selected_date before this component executes.
Sourcepub fn initial_selected_date_optional(
&self,
value: Option<CalendarDate>,
) -> Self
pub fn initial_selected_date_optional( &self, value: Option<CalendarDate>, ) -> Self
Configure initial_selected_date before this component executes.
Sourcepub fn initial_displayed_month(&self, value: YearMonth) -> Self
pub fn initial_displayed_month(&self, value: YearMonth) -> Self
Configure initial_displayed_month before this component executes.
Sourcepub fn initial_displayed_month_optional(&self, value: Option<YearMonth>) -> Self
pub fn initial_displayed_month_optional(&self, value: Option<YearMonth>) -> Self
Configure initial_displayed_month before this component executes.
Sourcepub fn year_range(&self, value: RangeInclusive<i32>) -> Self
pub fn year_range(&self, value: RangeInclusive<i32>) -> Self
Configure year_range before this component executes.
Sourcepub fn year_range_optional(&self, value: Option<RangeInclusive<i32>>) -> Self
pub fn year_range_optional(&self, value: Option<RangeInclusive<i32>>) -> Self
Configure year_range before this component executes.
Sourcepub fn is_selectable_date<F>(&self, value: F) -> Self
pub fn is_selectable_date<F>(&self, value: F) -> Self
Configure is_selectable_date before this component executes.
Configure is_selectable_date before this component executes.
Sourcepub fn is_selectable_date_optional(
&self,
value: Option<CallbackWith<CalendarDate, bool>>,
) -> Self
pub fn is_selectable_date_optional( &self, value: Option<CallbackWith<CalendarDate, bool>>, ) -> Self
Configure is_selectable_date before this component executes.
Sourcepub fn is_selectable_year<F>(&self, value: F) -> Self
pub fn is_selectable_year<F>(&self, value: F) -> Self
Configure is_selectable_year before this component executes.
Configure is_selectable_year before this component executes.
Sourcepub fn is_selectable_year_optional(
&self,
value: Option<CallbackWith<i32, bool>>,
) -> Self
pub fn is_selectable_year_optional( &self, value: Option<CallbackWith<i32, bool>>, ) -> Self
Configure is_selectable_year before this component executes.
Sourcepub fn display_mode(&self, value: DatePickerDisplayMode) -> Self
pub fn display_mode(&self, value: DatePickerDisplayMode) -> Self
Configure display_mode before this component executes.
Sourcepub fn display_mode_optional(
&self,
value: Option<DatePickerDisplayMode>,
) -> Self
pub fn display_mode_optional( &self, value: Option<DatePickerDisplayMode>, ) -> Self
Configure display_mode before this component executes.
Sourcepub fn first_day_of_week(&self, value: Weekday) -> Self
pub fn first_day_of_week(&self, value: Weekday) -> Self
Configure first_day_of_week before this component executes.
Sourcepub fn first_day_of_week_optional(&self, value: Option<Weekday>) -> Self
pub fn first_day_of_week_optional(&self, value: Option<Weekday>) -> Self
Configure first_day_of_week before this component executes.
Sourcepub fn today(&self, value: CalendarDate) -> Self
pub fn today(&self, value: CalendarDate) -> Self
Configure today before this component executes.
Sourcepub fn today_optional(&self, value: Option<CalendarDate>) -> Self
pub fn today_optional(&self, value: Option<CalendarDate>) -> Self
Configure today before this component executes.
Sourcepub fn show_weekday_labels(&self, value: bool) -> Self
pub fn show_weekday_labels(&self, value: bool) -> Self
Configure show_weekday_labels before this component executes.
Sourcepub fn show_weekday_labels_optional(&self, value: Option<bool>) -> Self
pub fn show_weekday_labels_optional(&self, value: Option<bool>) -> Self
Configure show_weekday_labels before this component executes.
Sourcepub fn show_mode_toggle(&self, value: bool) -> Self
pub fn show_mode_toggle(&self, value: bool) -> Self
Configure show_mode_toggle before this component executes.
Sourcepub fn show_mode_toggle_optional(&self, value: Option<bool>) -> Self
pub fn show_mode_toggle_optional(&self, value: Option<bool>) -> Self
Configure show_mode_toggle before this component executes.
Sourcepub fn title(&self, value: impl Into<String>) -> Self
pub fn title(&self, value: impl Into<String>) -> Self
Configure title before this component executes.
Sourcepub fn title_optional(&self, value: Option<String>) -> Self
pub fn title_optional(&self, value: Option<String>) -> Self
Configure title before this component executes.
Sourcepub fn headline(&self, value: impl Into<String>) -> Self
pub fn headline(&self, value: impl Into<String>) -> Self
Configure headline before this component executes.
Sourcepub fn headline_optional(&self, value: Option<String>) -> Self
pub fn headline_optional(&self, value: Option<String>) -> Self
Configure headline before this component executes.
Sourcepub fn state(&self, value: State<DatePickerState>) -> Self
pub fn state(&self, value: State<DatePickerState>) -> Self
Configure state before this component executes.
Sourcepub fn state_optional(&self, value: Option<State<DatePickerState>>) -> Self
pub fn state_optional(&self, value: Option<State<DatePickerState>>) -> Self
Configure state before this component executes.
Sourcepub fn view(&self, value: State<DatePickerView>) -> Self
pub fn view(&self, value: State<DatePickerView>) -> Self
Configure view before this component executes.
Sourcepub fn view_optional(&self, value: Option<State<DatePickerView>>) -> Self
pub fn view_optional(&self, value: Option<State<DatePickerView>>) -> Self
Configure view before this component executes.
Sourcepub fn focus_requester(&self, value: FocusRequester) -> Self
pub fn focus_requester(&self, value: FocusRequester) -> Self
Configure focus_requester before this component executes.
Sourcepub fn focus_requester_optional(&self, value: Option<FocusRequester>) -> Self
pub fn focus_requester_optional(&self, value: Option<FocusRequester>) -> Self
Configure focus_requester before this component executes.
Auto Trait Implementations§
impl Freeze for DatePickerBuilder
impl RefUnwindSafe for DatePickerBuilder
impl Send for DatePickerBuilder
impl Sync for DatePickerBuilder
impl Unpin for DatePickerBuilder
impl UnsafeUnpin for DatePickerBuilder
impl UnwindSafe for DatePickerBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.