Extensions/Assessment/themes/canvas

Extensions add specific functionality to Items API. They rely on modules within LT being available.

--

This script loads a custom UI theme for Items API.

Canvas is a minimal theme based on the Canvas LMS New Quizzes look and feel.

Items are vertically stacked with a flag button for each item. Because the assessment player is still present, you can have a timed test, auto-save, and other features.

Use the following custom region configuration in Items API to load this theme:

{
    "config": {
        "title": "Assessment title",
        "subtitle": "Assessment subtitle",
        "regions": {
            "items": [
                {
                    "type": "vertical_element",
                    "vertical_stretch_option": false,
                    "scrollable_option": false
                }
            ],
            "top-left": [
                {
                    "type": "title_element"
                }
            ],
            "bottom-right": [
                {
                    "type": "submit_button"
                }
            ]
        },
        "configuration": {
            "question_indexing": true,
            "accessibility": {
                "headings": {
                    "question": false
                }
            }
        }
    }
}

Methods

run()

Loads the Canvas theme for Items API (the player).

Since
2.14.0
Example
import { LT } from '@caspingus/lt/assessment';

LT.init(itemsApp); // Set up LT with the Items API application instance variable
LT.extensions.themes.canvas.run();