Skip to content

deltanet/adapt-close

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Close

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.

Installation

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.

Usage

  • 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.

Attributes

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 ""

Limitations

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

About

An extension to add a close button and/or prompts

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 95.0%
  • Less 3.7%
  • Handlebars 1.3%