Small tweaks

This commit is contained in:
Pieter Vander Vennet 2020-11-15 16:08:17 +01:00
parent e8d176cfe4
commit a144cf17f4
4 changed files with 8 additions and 8 deletions

View file

@ -100,7 +100,7 @@ export default class ValidatedTextField {
}),
ValidatedTextField.tp(
"direction",
"A geographical direction, in degrees. 0° is north, 90° is east",
"A geographical direction, in degrees. 0° is north, 90° is east, ... Will return a value between 0 (incl) and 360 (excl)",
(str) => {
str = "" + str;
return str !== undefined && str.indexOf(".") < 0 && !isNaN(Number(str)) && Number(str) > 0 && Number(str) <= 360