egroupware/api/js/etemplate/Et2InputWidget/ManualMessage.ts
2022-02-24 15:53:40 -07:00

17 lines
422 B
TypeScript

import {ResultValidator} from "@lion/form-core";
/**
* Manual validator for server-side validation messages passed
* from Etemplate. It is always "activated", and just gives whatever
* message is passed in when created.
*
*/
export class ManualMessage extends ResultValidator
{
static validatorName = "ManualMessage";
static async getMessage({fieldName, modelValue, formControl, params})
{
return params;
}
}