DatePicker
struct · ferroui-controls · v0.5.0
struct DatePicker
A control to allow the user to select a date.
Members
TYPEto_refon_selected_date_changedday_format_propertyday_visible_propertymax_year_propertymin_year_propertymonth_format_propertymonth_visible_propertyyear_format_propertyyear_visible_propertyvertical_content_alignment_propertyselected_date_propertyconstructnewvertical_content_alignmentset_vertical_content_alignmentday_formatset_day_formatday_visibleset_day_visiblemax_yearset_max_yearmin_yearset_min_yearmonth_formatset_month_formatmonth_visibleset_month_visibleyear_formatset_year_formatyear_visibleset_year_visibleselected_dateset_selected_dateselected_date_changedclear
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<DatePicker>
Returns a strong reference to this object.
on_selected_date_changed
fn on_selected_date_changed(self: &Self, e: &DatePickerSelectedValueChangedEventArgs)
Raises the SelectedDateChanged event.
day_format_property
fn day_format_property() -> &'static StyledProperty<String>
Defines the DayFormat property.
day_visible_property
fn day_visible_property() -> &'static StyledProperty<bool>
Defines the DayVisible property.
max_year_property
fn max_year_property() -> &'static StyledProperty<DateTimeOffset>
Defines the MaxYear property.
min_year_property
fn min_year_property() -> &'static StyledProperty<DateTimeOffset>
Defines the MinYear property.
month_format_property
fn month_format_property() -> &'static StyledProperty<String>
Defines the MonthFormat property.
month_visible_property
fn month_visible_property() -> &'static StyledProperty<bool>
Defines the MonthVisible property.
year_format_property
fn year_format_property() -> &'static StyledProperty<String>
Defines the YearFormat property.
year_visible_property
fn year_visible_property() -> &'static StyledProperty<bool>
Defines the YearVisible property.
vertical_content_alignment_property
fn vertical_content_alignment_property() -> &'static StyledProperty<VerticalAlignment>
Defines the VerticalContentAlignment property.
selected_date_property
fn selected_date_property() -> &'static StyledProperty<Option<DateTimeOffset>>
Defines the SelectedDate property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
vertical_content_alignment
fn vertical_content_alignment(self: &Self) -> VerticalAlignment
The vertical alignment of the content within the control.
set_vertical_content_alignment
fn set_vertical_content_alignment(self: &Self, value: VerticalAlignment)
day_format
fn day_format(self: &Self) -> String
The format of the day.
set_day_format
fn set_day_format(self: &Self, value: &str)
day_visible
fn day_visible(self: &Self) -> bool
Whether the day is visible.
set_day_visible
fn set_day_visible(self: &Self, value: bool)
max_year
fn max_year(self: &Self) -> DateTimeOffset
The maximum year for the picker.
set_max_year
fn set_max_year(self: &Self, value: DateTimeOffset)
min_year
fn min_year(self: &Self) -> DateTimeOffset
The minimum year for the picker.
set_min_year
fn set_min_year(self: &Self, value: DateTimeOffset)
month_format
fn month_format(self: &Self) -> String
The month format.
set_month_format
fn set_month_format(self: &Self, value: &str)
month_visible
fn month_visible(self: &Self) -> bool
Whether the month is visible.
set_month_visible
fn set_month_visible(self: &Self, value: bool)
year_format
fn year_format(self: &Self) -> String
The year format.
set_year_format
fn set_year_format(self: &Self, value: &str)
year_visible
fn year_visible(self: &Self) -> bool
Whether the year is visible.
set_year_visible
fn set_year_visible(self: &Self, value: bool)
selected_date
fn selected_date(self: &Self) -> Option<DateTimeOffset>
The selected date for the picker; can be None.
set_selected_date
fn set_selected_date(self: &Self, value: Option<DateTimeOffset>)
selected_date_changed
fn selected_date_changed(self: &Self, handler: impl Fn(&DatePickerSelectedValueChangedEventArgs) -> () + 'static) -> Subscription
Raised when the selected date changes. Dropping the returned guard removes the handler;
Subscription::detach keeps it for the life of the picker.
clear
fn clear(self: &Self)
Clears the selected date.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtControlImplExtDatePickerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<DatePicker>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplFerroObjectImplTemplatedControlImplControlImplDatePickerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.