CompletePanel
Extends: module:activities/text/TextActivityBasePanel.TextActivityBasePanel
Source: Complete.js:54
The TextActivityBasePanel where Complete activities are played.
Constructor
new CompletePanel(
act: module:Activity.Activity,
ps: module:JClicPlayer.JClicPlayer,
$div?: external:jQuery,
): CompletePanelCompletePanel constructor
Parameters
act(module:Activity.Activity) — The Activity to which this Panel belongsps(module:JClicPlayer.JClicPlayer) — Any object implementing the methods defined in the
PlayStation Java interface.$div(external:jQuery, optional) — The jQuery DOM element where this Panel will deploy
Instance Methods
$createTargetElement(
_target: module:activities/text/TextActivityDocument.TextTarget,
_$span: external:jQuery,
): external:jQuery
Creates a target DOM element for the provided target.
Parameters
_target(module:activities/text/TextActivityDocument.TextTarget) — The target related to the DOM object to be created_$span(external:jQuery)
Returns
startActivity()
Called when the activity starts playing
evaluatePanel(): boolean
Evaluates all the targets in this panel. This method is usually called from the Check button.
Returns
boolean
finishActivity(result: boolean)
Ordinary ending of the activity, usually called form processEvent
Parameters
result(boolean) —trueif the activity was successfully completed,falseotherwise