mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 11:23:54 +01:00
19 lines
395 B
TypeScript
19 lines
395 B
TypeScript
import {Validator} from "./Validator";
|
|
|
|
/**
|
|
* Manual validator for server-side validation messages passed
|
|
* from Etemplate. It just gives whatever message is passed in when created.
|
|
*
|
|
*/
|
|
export class ManualMessage extends Validator
|
|
{
|
|
static get validatorName()
|
|
{
|
|
return "ManualMessage";
|
|
}
|
|
|
|
static async getMessage({fieldName, modelValue, formControl, params})
|
|
{
|
|
return params;
|
|
}
|
|
} |