Use NumberEdit for integer fields

This commit is contained in:
Gerhard Tan
2024-03-14 02:16:19 +08:00
parent 3981230629
commit 5a0d517559
17 changed files with 1343 additions and 1178 deletions

View File

@ -127,9 +127,7 @@ var (
// Validators
var (
ValidateNonEmpty = validators.Regexp{Pattern: "[^\\s]+"}
ValidateRequireInteger = validators.Regexp{Pattern: "^\\d+$"}
ValidatePortRange = []Validator{ValidateRequireInteger, validators.Range{Min: 0, Max: 65535}}
ValidateNonEmpty = validators.Regexp{Pattern: "[^\\s]+"}
)
// Dialogs