Initialization Option Author API

default_player_template

The assessment player template which will be selected by default when creating a new Activity.

You would want to specify this initialization option so that you can define the assessment player template used for all new Activities.

The template reference can be either an existing custom template or a template reference which has been defined by the player_templates initialization option.

To find an existing custom template reference, go to the Activity editor "Player" section, inspect the DOM element of the custom template list entry, then find the DOM attribute value for [data-authorapi-player-reference].

Examples

var initializationOptions = {
    "config": {
        "activity_edit": {
            "default_player_template": "my-assessment-player-template-reference"
        }
    }
};

Values

Request object key config.activity_edit.default_player_template

Type string

Related articles

Was this article helpful?