egroupware_official/api/js/etemplate/Validators/ManualMessage.ts
2024-05-07 14:46:44 -06:00

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;
}
}