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, ): CompletePanel

CompletePanel constructor

Parameters


Instance Methods

$createTargetElement( _target: module:activities/text/TextActivityDocument.TextTarget, _$span: external:jQuery, ): external:jQuery

Creates a target DOM element for the provided target.

Parameters

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) — true if the activity was successfully completed, false otherwise