mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 15:09:30 +01:00
d9e95dae87
Will cancel submit, shows validation message
16 lines
392 B
TypeScript
16 lines
392 B
TypeScript
import {ResultValidator} from "@lion/form-core";
|
|
|
|
/**
|
|
* Manual validator for server-side validation messages passed
|
|
* from Etemplate. It 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;
|
|
}
|
|
} |