Close is an extension for the Adapt framework.
An extension to add a close button to the navigation bar and/or Articles, Blocks and Components.
This extension must be manually installed.
If Close has been uninstalled from the Adapt authoring tool, it may be reinstalled using the Plug-in Manager.
- A close button can be added to the navigation bar.
- Prompts using notify can be triggered on this button.
- In addition, browser dialogs can be displayed if you close the window in a normal fashion.
Attribute |
Type | Description | Default | ||
---|---|---|---|---|---|
_button |
_isEnabled |
Boolean | Adds a close button to the navigation bar | false |
|
_notifyPromptIfIncomplete |
_isEnabled |
Boolean | Displays a notify prompt if the close button is selected while the course is incomplete | false |
|
title |
String | Prompt title | "Confirm close" |
||
body |
String | Prompt message |
"Are you sure you want to close the window?" |
||
confirm |
String | Confirm button text | "Close window" |
||
cancel |
String | Cancel button text |
"Cancel" |
||
_notifyPromptIfComplete |
_isEnabled |
Boolean | Displays a notify prompt if the close button is selected after the course has been completed | false |
|
title |
String | Prompt title | "Confirm close" |
||
body |
String | Prompt message | "Are you sure you want to close the window?" |
||
confirm |
String | Confirm button text | "Close window" |
||
cancel |
String | Cancel button text | "Cancel" |
||
browserPromptIfIncomplete |
String | Populate with text to display a browser dialog if the window is closed while the course is incomplete | "" |
||
browserPromptIfComplete |
String |
Populate with text to display a browser dialog if the window is closed after the course has been completed | "" |
Firefox doesn’t currently support custom messages in its dialogs.
Version number: 4.1.2
Framework versions supported: 5.8+
Author / maintainer: C&G Kineo / DeltaNet with contributors
Accessibility support: Yes
RTL support: Yes
Authoring tool support: Yes