From e0629e9595d5801d051e3642c6f52c8bf1471788 Mon Sep 17 00:00:00 2001 From: Avior Date: Mon, 9 Dec 2019 14:14:29 +0100 Subject: [PATCH] Add new listeners Signed-off-by: Avior --- src/attributes/AttributeListeners.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/attributes/AttributeListeners.ts b/src/attributes/AttributeListeners.ts index 29165af..e15090d 100644 --- a/src/attributes/AttributeListeners.ts +++ b/src/attributes/AttributeListeners.ts @@ -1,12 +1,14 @@ enum AttributeListeners { - PRE_CLEAR, // Event run before clearing the form - POST_CLEAR, // Event run after learing the form - CHANGE, // Event runs on Form Change (datas wil be filled with the FMInput element) - FORM_INIT, // Event runs on form init - FORM_SUBMIT, // Event run before submitting (datas is filled with the datas that will be submitted, MUST return TriggerCallback) - VERIFY, // Event run on element verification (return true or false only) - FORM_FILL, // Event run after the form was filled - MODE_SWITCH, // Event run on form mode switch + PRE_CLEAR, // Event run before clearing the form + POST_CLEAR, // Event run after learing the form + CHANGE, // Event run on Form Change (datas wil be filled with the FMInput element) + FORM_INIT, // Event run on form init + FORM_SUBMIT, // Event run before submitting (datas is filled with the datas that will be submitted, MUST return TriggerCallback) + VERIFY, // Event run on element verification (return true or false only) + FORM_FILL, // Event run after the form was filled + MODE_SWITCH, // Event run on form mode switch + INPUT_ERROR, // Event run if an error was found in the form (data is filled with the errored field) + INPUT_UNFOCUS, // Event run on input unfocus } export default AttributeListeners