FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CalendarDatePickerDateValidationErrorEventArgs

    struct · ferroui-controls · v0.5.0

    struct CalendarDatePickerDateValidationErrorEventArgs
    

    Provides data for the DateValidationError event of the CalendarDatePicker.

    A copy shares the state of the args it was made from, so that what a handler decides reaches the control that raised the event.

    View source

    Members

    new

    fn new(exception: Rc<dyn Error>, text: impl Into<String>) -> Self
    

    Initializes a new instance of the CalendarDatePickerDateValidationErrorEventArgs class.

    exception is the initial exception from the DateValidationError event and text the text that caused the event.

    Source

    exception

    fn exception(self: &Self) -> &Rc<dyn Error>
    

    Gets the initial exception associated with the DateValidationError event.

    Source

    text

    fn text(self: &Self) -> &str
    

    Gets the text that caused the DateValidationError event.

    Source

    throw_exception

    fn throw_exception(self: &Self) -> bool
    

    Gets a value indicating whether the exception should be thrown: the control then panics with the message of the exception.

    If set to true, the control throws the exception when the text cannot be parsed to a date or the date cannot be selected. The default is false.

    Source

    set_throw_exception

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

    Sets a value indicating whether the exception should be thrown. (The args always have an exception, so the check of the reference for a missing one has no counterpart.)

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • PartialEq

    Availability

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