Skip to content

About

Displays a prompt if you try and leave a page without having completed all components.

Resources

Contributing

Stars

1 star

Watchers

8 watching

Forks

Repository files navigation

adapt-pageIncompletePrompt

Page Incomplete Prompt is an extension that displays a prompt if you try to leave a page without having completed all required components.

Settings Overview

Page Incomplete Prompt is configured globally in course.json. Individual pages can switch the prompt on or off in contentObjects.json, which overrides the course.json _isEnabled setting. The prompt title, message, classes and button labels are set in course.json only.

Attributes

All configuration options must be added and amended, where appropriate, for all JSON files.

course.json

The following attributes are set within course.json.

_pageIncompletePrompt (object)

The Page Incomplete Prompt object contains the following settings:

_isEnabled (boolean)

Controls whether the extension is enabled

title (string)

The title of the prompt popup

message (string)

The message body of the prompt popup

_classes (string)

CSS class names to be applied to the prompt popup. The class must be predefined in one of the Less files. Separate multiple classes with a space.

_buttons (object)

This object contains the following settings:

yes (string)

The text that appears on the 'yes' confirmation button

no (string)

The text that appears on the 'no' button

contentObjects.json

The following attributes are set within contentObjects.json.

_pageIncompletePrompt (object)

The Page Incomplete Prompt object contains the following settings:

_isEnabled (boolean)

Controls whether the extension is enabled for the page. Leave unset to use the course.json setting.

Limitations

No known limitations.


Author / maintainer: Mindtools Kineo
Accessibility support: WAI AA
RTL support: Yes
Cross-platform coverage: Chrome, Chrome for Android, Firefox (ESR + latest version), Edge, Safari for macOS/iOS/iPadOS, Opera

About

Displays a prompt if you try and leave a page without having completed all components.

Resources

Contributing

Stars

1 star

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages