FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DatePicker

    struct · ferroui-controls · v0.5.0

    struct DatePicker
    

    A control to allow the user to select a date.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<DatePicker>
    

    Returns a strong reference to this object.

    Source

    on_selected_date_changed

    fn on_selected_date_changed(self: &Self, e: &DatePickerSelectedValueChangedEventArgs)
    

    Raises the SelectedDateChanged event.

    Source

    day_format_property

    fn day_format_property() -> &'static StyledProperty<String>
    

    Defines the DayFormat property.

    Source

    day_visible_property

    fn day_visible_property() -> &'static StyledProperty<bool>
    

    Defines the DayVisible property.

    Source

    max_year_property

    fn max_year_property() -> &'static StyledProperty<DateTimeOffset>
    

    Defines the MaxYear property.

    Source

    min_year_property

    fn min_year_property() -> &'static StyledProperty<DateTimeOffset>
    

    Defines the MinYear property.

    Source

    month_format_property

    fn month_format_property() -> &'static StyledProperty<String>
    

    Defines the MonthFormat property.

    Source

    month_visible_property

    fn month_visible_property() -> &'static StyledProperty<bool>
    

    Defines the MonthVisible property.

    Source

    year_format_property

    fn year_format_property() -> &'static StyledProperty<String>
    

    Defines the YearFormat property.

    Source

    year_visible_property

    fn year_visible_property() -> &'static StyledProperty<bool>
    

    Defines the YearVisible property.

    Source

    vertical_content_alignment_property

    fn vertical_content_alignment_property() -> &'static StyledProperty<VerticalAlignment>
    

    Defines the VerticalContentAlignment property.

    Source

    selected_date_property

    fn selected_date_property() -> &'static StyledProperty<Option<DateTimeOffset>>
    

    Defines the SelectedDate property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    vertical_content_alignment

    fn vertical_content_alignment(self: &Self) -> VerticalAlignment
    

    The vertical alignment of the content within the control.

    Source

    set_vertical_content_alignment

    fn set_vertical_content_alignment(self: &Self, value: VerticalAlignment)
    

    Source

    day_format

    fn day_format(self: &Self) -> String
    

    The format of the day.

    Source

    set_day_format

    fn set_day_format(self: &Self, value: &str)
    

    Source

    day_visible

    fn day_visible(self: &Self) -> bool
    

    Whether the day is visible.

    Source

    set_day_visible

    fn set_day_visible(self: &Self, value: bool)
    

    Source

    max_year

    fn max_year(self: &Self) -> DateTimeOffset
    

    The maximum year for the picker.

    Source

    set_max_year

    fn set_max_year(self: &Self, value: DateTimeOffset)
    

    Source

    min_year

    fn min_year(self: &Self) -> DateTimeOffset
    

    The minimum year for the picker.

    Source

    set_min_year

    fn set_min_year(self: &Self, value: DateTimeOffset)
    

    Source

    month_format

    fn month_format(self: &Self) -> String
    

    The month format.

    Source

    set_month_format

    fn set_month_format(self: &Self, value: &str)
    

    Source

    month_visible

    fn month_visible(self: &Self) -> bool
    

    Whether the month is visible.

    Source

    set_month_visible

    fn set_month_visible(self: &Self, value: bool)
    

    Source

    year_format

    fn year_format(self: &Self) -> String
    

    The year format.

    Source

    set_year_format

    fn set_year_format(self: &Self, value: &str)
    

    Source

    year_visible

    fn year_visible(self: &Self) -> bool
    

    Whether the year is visible.

    Source

    set_year_visible

    fn set_year_visible(self: &Self, value: bool)
    

    Source

    selected_date

    fn selected_date(self: &Self) -> Option<DateTimeOffset>
    

    The selected date for the picker; can be None.

    Source

    set_selected_date

    fn set_selected_date(self: &Self, value: Option<DateTimeOffset>)
    

    Source

    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.

    Source

    clear

    fn clear(self: &Self)
    

    Clears the selected date.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.