Feedback
Constructor Summary
| Public Constructor | ||
| public |
constructor({number},: *, {String},: *) Construct the feedback class |
|
Method Summary
| Public Methods | ||
| public |
Bind all the actions connected to this module return {void} |
|
| public |
exerciseFeedbackBox({number},: *, {String},: *) |
|
| public |
Returns the input box for the feedback |
|
| public |
Feedback fields for the feedback box within the exercise Using html template and Mustache to render the content |
|
| public |
feedbackAction({Object},: *) The action performed predefined option is clicked |
|
| public |
submitFeedback({number},: *, {String},: *, {String},: *) Request the submit for feedback to the Zeeguu API |
|
| public |
Success message when the feedback is being submitted |
|
Public Constructors
public constructor({number},: *, {String},: *) source
Construct the feedback class
Params:
| Name | Type | Attribute | Description |
| {number}, | * | id of the current word |
|
| {String}, | * | resultSubmitSource, |
Public Methods
public exerciseFeedbackBox({number},: *, {String},: *) source
Params:
| Name | Type | Attribute | Description |
| {number}, | * | session id |
|
| {String}, | * | resultSubmitSource, |
public exerciseFeedbackInput(): * source
Returns the input box for the feedback
Return:
| * | {String}, the input box for the feedback |
public exerciseFeedbackOptions(): String source
Feedback fields for the feedback box within the exercise Using html template and Mustache to render the content
public feedbackAction({Object},: *) source
The action performed predefined option is clicked
Params:
| Name | Type | Attribute | Description |
| {Object}, | * | elem, the element that is clicked |
public submitFeedback({number},: *, {String},: *, {String},: *) source
Request the submit for feedback to the Zeeguu API
Params:
| Name | Type | Attribute | Description |
| {number}, | * | id, id of the word |
|
| {String}, | * | feedbackOption, the outcome of the feedback @example: too_easy |
|
| {String}, | * | resultSubmitSource, the source of submission @example: Recognize_L1W_in_L2T |