* Checks if a value is valid against the current `valueFormat` value. * * **Note:** an empty string is considered as valid value. * @param value The value to be tested against the value format * @public * @since 2.21.0
(value: string | undefined)
| 883 | * @since 2.21.0 |
| 884 | */ |
| 885 | isValidValue(value: string | undefined): boolean { |
| 886 | if (value === "") { |
| 887 | return true; |
| 888 | } |
| 889 | |
| 890 | return !!this.getValueFormat().parse(value as string, true); |
| 891 | } |
| 892 | |
| 893 | /** |
| 894 | * Converts a value from displayFormat to valueFormat |
no test coverage detected