Global

Type Definitions

onAnswerCallback(question, answer)

Callback for every Quiz answer
Parameters:
Name Type Description
question Object Answered question object
answer String Answer informations holder
Properties
Name Type Description
value String Answer value
correct Boolean Was the answer correct?
time Number Answer time
Source:

onEndCallback(questions)

Callback for the Quiz end
Parameters:
Name Type Description
questions Array.<Object> Question informations holder
Properties
Name Type Description
id String Question ID
answer String Answer value
correct Boolean Was the answer correct?
time Number Answer time
Source:

onTimerStartCallback(timerElement)

Callback for every Quiz timer start
Parameters:
Name Type Description
timerElement String Quiz timer element
Source:

Question

Type:
  • Object
Properties:
Name Type Description
questions.title String Question title
questions.id String Question id (must be unique)
questions.answer String Correct answer for the question (Must correspond to answers.title)
questions.answers Array.<Object> Answer information holder
Properties
Name Type Description
title String Answer title
value String Answer real value
chosenPercentage Number Answer pick percentage
Source: