traitify-widgets 3.0.0-alpha.38 → 3.0.0-alpha.38-beta.26

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
@@ -117,20 +117,16 @@ export default function Personality({id}) {
117
117
 
118
118
  ## Events
119
119
 
120
- - Most components trigger an initialized and updated event
121
- - Event handlers must be set before the render command or they will not be called
122
- - Some events may fire multiple times, once for each target specified (such as the Survey and Results)
123
-
124
- The widgets are capable of showing multiple kinds of surveys to users in order to satisfy benchmark requirements. To handle the event when all surveys have been finished you should use this event:
120
+ Most components trigger an initialized and updated event. Some components offer additional events. Event handlers must be set before the render command, or they will not be called.
125
121
 
122
+ The widgets are capable of showing multiple kinds of surveys to users in order to satisfy benchmark requirements, to handle the event when all surveys have been finished you should use this event:
126
123
  ```
127
- Traitify.listener.on("Surveys.finished", (surveys) => {
128
- console.log("Surveys.finished", surveys);
124
+ Traitify.listener.on("Surveys.allFinished", (surveys) => {
125
+ console.log("Surveys.allFinished", surveys);
129
126
  });
130
127
  ```
131
128
 
132
- To handle the event when each survey has been finished, maybe to record total progress in a backend system:
133
-
129
+ To handle the event when each survey has been finished, maybe to record total progress in a backend system:
134
130
  ```
135
131
  Traitify.listener.on("Survey.finished", ({response}) => {
136
132
  console.log("Survey.finished", response);