2
0
mirror of synced 2025-01-09 13:56:19 +00:00
Pascal Precht 1a23cc1912 feat(StatusValidator): allow validators to provide default errorMessage
Validators can now define a default `errorMessage` like so:

```qml
StatusValidator {
  ...
  errorMessage: "..."
}
```

Because there's no access to runtime validation errors, `errorMessage` have to
be static. However, if applications wish to provide their own `errorMessage`
they can still override it and make it dynamic:

```qml
SomeValidator {
  ...
  errorMessage: input.errors.someValidator ? "Whoopsie" : ""
}
```
2021-09-13 09:55:09 +02:00
..
2021-07-09 11:16:04 +02:00
2021-05-05 07:55:43 +02:00
2021-05-05 07:55:43 +02:00
2021-05-05 07:55:43 +02:00
2021-05-05 07:55:43 +02:00
2021-07-09 11:16:04 +02:00