forked from MapComplete/MapComplete
Feature(distancePicker): revive geographical distance picker
This commit is contained in:
parent
e997653284
commit
5095bffc50
16 changed files with 245 additions and 107 deletions
|
|
@ -14,7 +14,8 @@ export abstract class Validator {
|
|||
* */
|
||||
public readonly explanation: string
|
||||
/**
|
||||
* What HTML-inputmode to use
|
||||
* What HTML-inputmode to use?
|
||||
* Note: some inputHelpers will completely hide the default text field. This is kept in InputHelpers.hideInputField
|
||||
*/
|
||||
public readonly inputmode?:
|
||||
| "none"
|
||||
|
|
@ -81,4 +82,14 @@ export abstract class Validator {
|
|||
public reformat(s: string, _?: () => string): string {
|
||||
return s
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks that the helper arguments are correct.
|
||||
* This is called while preparing the themes.
|
||||
* Returns 'undefined' if everything is fine, or feedback if an error is detected
|
||||
* @param args the args for the input helper
|
||||
*/
|
||||
public validateArguments(args: string): undefined | string {
|
||||
return undefined
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue