INotifyDataErrorInfo
trait · ferroui-base · v0.5.0
trait INotifyDataErrorInfo
Lets a model object report validation errors for its properties (synchronously or asynchronously).
Members
has_errors
fn has_errors(self: &Self) -> bool
Whether the object has validation errors.
get_errors
fn get_errors(self: &Self, property_name: Option<&str>) -> Vec<BoxedValue>
The validation errors of the property named property_name, or the
object-level errors when it is None or empty. Errors are untyped:
strings and boxed BindingError values
are shown as they are.
errors_changed
fn errors_changed(self: &Self) -> &Event<str>
The event raised when the validation errors of a property (the event argument; empty for the whole object) have changed.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.