Giter VIP home page Giter VIP logo

adapt-close's Introduction

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: 3.2.1
Framework versions supported: 4+
Author / maintainer: C&G Kineo / DeltaNet with contributors
Accessibility support: Yes
RTL support: Yes
Authoring tool support: Yes

adapt-close's People

Contributors

robertpeek avatar tomgreenfield avatar dancgray avatar moloko avatar deltanetdan avatar dimitar-kds avatar simondate avatar chris-steele avatar oliverfoster avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.