mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 04:24:41 +01:00
14 lines
393 B
TypeScript
14 lines
393 B
TypeScript
|
import {Required as LionRequired} from "@lion/form-core";
|
||
|
|
||
|
export class Required extends LionRequired
|
||
|
{
|
||
|
/**
|
||
|
* Give a message about this field being required. Could be customised according to MessageData.
|
||
|
* @param {MessageData | undefined} data
|
||
|
* @returns {Promise<string>}
|
||
|
*/
|
||
|
static async getMessage(data)
|
||
|
{
|
||
|
return data.formControl.egw().lang("Field must not be empty !!!");
|
||
|
}
|
||
|
}
|