Home Reference Source
public class | source

Feedback

Constructor Summary

Public Constructor
public

constructor({number},: *, {String},: *)

Construct the feedback class

Member Summary

Public Members
public
public
public

wordId: *

Class parameters

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:

NameTypeAttributeDescription
{number}, *

id of the current word

{String}, *

resultSubmitSource,

Public Members

public resultSubmitSource: * source

public sessionId: * source

public wordId: * source

Class parameters

Public Methods

public bindUIActions() source

Bind all the actions connected to this module return {void}

public exerciseFeedbackBox({number},: *, {String},: *) source

Params:

NameTypeAttributeDescription
{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

Return:

String

rendered html

public feedbackAction({Object},: *) source

The action performed predefined option is clicked

Params:

NameTypeAttributeDescription
{Object}, *

elem, the element that is clicked

public submitFeedback({number},: *, {String},: *, {String},: *) source

Request the submit for feedback to the Zeeguu API

Params:

NameTypeAttributeDescription
{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

public successfulFeedback() source

Success message when the feedback is being submitted