@bigbinary/neeto-form-frontend 2.2.0-beta1 → 2.2.0-beta3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -78,6 +78,13 @@ The engine adds setup for form on backend and allows us to attach forms to any m
78
78
 
79
79
  ### Customizability
80
80
 
81
+ #### `NeetoFormEngine::Customizable::Forms::Createable`
82
+ The engine supports customizing the default behavior of `Forms::CreateService` by overriding the supported methods in this concern.
83
+
84
+ #### Available methods:
85
+ 1. `create_default_questions!`: If you want to use custom logic to create default questions, you can specify them using this method. `owner`, `form` and `params` will be available globally.
86
+ 2. `additional_form_params`: If you want to include additional attributes while creating forms, you can specify them using this method. It takes one argument `params` which will be the form parameters passed from the front-end.
87
+
81
88
  #### `NeetoFormEngine::Customizable::Questions::Createable`
82
89
  The engine supports customizing the default behavior of `Questions::CreateService` by overriding the supported methods in this concern.
83
90
 
@@ -91,6 +98,15 @@ The engine adds setup for form on backend and allows us to attach forms to any m
91
98
  #### Available constants:
92
99
  1. `EXCLUDED_UPDATE_PARAMS`: If you have included extra parameters other than `kind` for additional use cases that are not valid entity attributes, they need to be specified as `EXCLUDED_UPDATE_PARAMS`.
93
100
 
101
+ #### `NeetoFormEngine::Customizable::QuestionResponses::Createable`
102
+ The engine supports customizing the default behavior of `QuestionResponses::CreateService` by overriding the supported methods in this concern.
103
+
104
+ #### Available methods:
105
+ 1. `additional_initialization_logic`: If you want to initialize additional variables, you can specify them using this method.
106
+ 2. `additional_process_actions`: If you want to perform any additional actions outside the transaction block, you can override this method.
107
+ 3. `additional_create_submission_actions`: You can use this method to specify any additional logic that needs to be executed after creating submissions.
108
+ 4. `additional_create_response_actions`: If you want to perform some additional actions on each of the responses, you can specify them using this method. This method receives `question` and `response_param` passed from the front-end as arguments.
109
+
94
110
  ## Frontend package
95
111
  The frontend package allows us to create forms across neeto products.
96
112