Add new listeners

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2019-12-09 14:14:29 +01:00
parent d648f7990f
commit e0629e9595
No known key found for this signature in database
GPG Key ID: B143FF27EF555D16

View File

@ -1,12 +1,14 @@
enum AttributeListeners { enum AttributeListeners {
PRE_CLEAR, // Event run before clearing the form PRE_CLEAR, // Event run before clearing the form
POST_CLEAR, // Event run after learing the form POST_CLEAR, // Event run after learing the form
CHANGE, // Event runs on Form Change (datas wil be filled with the FMInput element) CHANGE, // Event run on Form Change (datas wil be filled with the FMInput element)
FORM_INIT, // Event runs on form init 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) 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) VERIFY, // Event run on element verification (return true or false only)
FORM_FILL, // Event run after the form was filled FORM_FILL, // Event run after the form was filled
MODE_SWITCH, // Event run on form mode switch 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 export default AttributeListeners