Icon popup is an extension for the Adapt framework.
This extension allows an icon or text button to be inserted into an Article, Block or Component which opens content in a popup or a URL in a new window.
This extension must be manually installed.
If Icon popup has been uninstalled from the Adapt authoring tool, it may be reinstalled using the Plug-in Manager.
Icon popup is configured on three levels: article (articles.json), block (blocks.json) and component (components.json).
The attributes listed below are properly formatted as JSON in example.json.
The Icon popup attribute group contains values for _isEnabled, _classes, _audio, and _items.
_isEnabled (boolean): Turns on and off the Icon popup extension. Can be set to disable Icon popup when not required.
_classes (string): Defines a CSS class for a theme to reference.
_audio (object): This
_audio
attributes group stores the properties for audio functionality. It contains values for _isEnabled, and _channel.
_isEnabled (boolean): If set to
true
, audio functionality can be used in the items.
_channel (number): Defines the channel number for the audio.
_items (array): This
_items
attributes group stores the properties for each button. It contains values for _type, _setCompletion, _onlyShowOnFinalAttempt, _buttonTitle, _buttonIcon, _notifyGraphic, _buttonGraphic, _ariaLabels, title, body, _itemGraphic, _audio, and _url.
_type (string): Defines what type of popup is used. Option are
Popup
andURL
.
_setCompletion (boolean): Defines whether the Article, Block or Component element should be set to complete when the item is viewed.
_onlyShowOnFinalAttempt (boolean): Determines whether the item will only show when the final attempt is being used. This only applies to question components.
_buttonTitle (string): Sets the text on the button.
_buttonIcon (object): This
_buttonIcon
attributes group stores the properties for an icon on the button. It contains values for _iconSelection, and _icon.
_iconSelection (string): Pre-defined class name for the icon used on the button.
_icon (string): Defines a custom CSS class for the button icon.
_notifyGraphic (object): This
_notifyGraphic
attributes group stores the properties for a notify graphic. It contains values for src.
alt (string): This text becomes the image’s
alt
attribute.
src (string): File name (including path) of the image for the notify style popup. Path should be relative to the src folder.
_buttonGraphic (object): This
_buttonGraphic
attributes group stores the properties for an image used as the button. It contains values for _isEnabled, src, srcHover, srcVisited, and alt.
_isEnabled (boolean): If set to
true
, an image will be used as the button.
src (string): File name (including path) of the image for the button. Path should be relative to the src folder.
srcHover (string): File name (including path) of the image for the button hover state. Path should be relative to the src folder.
alt (string): This text becomes the image’s
alt
attribute.
_ariaLabels (object): This
_ariaLabels
attributes group stores the accessibility properties for the button. It contains values for openPopup.
openPopup (string): This text becomes the image’s
aria label
attribute.
title (string): This text becomes the item’s popup title.
body (string): This text becomes the item’s body text.
_itemGraphic (object): This
_itemGraphic
attributes group stores the properties for an image used in the item popup. It contains values for _iconSelection, _icon, src, and alt.
_iconSelection (string): Pre-defined class name for the icon used as the header image.
_icon (string): Defines a custom class name for the icon used as the header image.
src (string): File name (including path) of the image in the item popup. Path should be relative to the src folder.
alt (string): This text becomes the popup image’s
alt
attribute.
_video (object): This
_video
attributes group stores the properties for a video used in the item popup. It contains values for _autoPlay, _startVolume, and _media.
_autoPlay (boolean): If set to
true
, the video will autoplay. Will behave differently on mobile devices where user interaction may be reqired to start play.
_startVolume (string): Defines the default volume as a percentage (Not supported on mobile devices). This can be set with or without the percentage sign in the string.
_media (object): The media attributes group contains values for mp4, poster, and cc.
mp4 (string): File name (including path) of the video file. Path should be relative to the src folder (e.g., course/en/video/video-1.mp4).
poster (string): File name (including path) of the optional image to be shown while the video is downloading, or until the user hits the play button. If this is not included, the first frame of the video will be used instead. Path should be relative to the src folder (e.g., course/en/images/video-1.jpg).
cc (array): Closed captions in multiple languages may be provided. Each object in this list contains values for srclang and src.
srclang (string): The language of the closed captions (e.g.,
en
for English). Acceptable values can be found at http://www.w3schools.com/tags/ref_language_codes.asp.
src (string): File name (including path) of the closed captions resource accepted by
<track>
(i.e., the VTT file). Path should be relative to the src folder (e.g., course/en/video/big_buck_bunny_sub.vtt).
_audio (object): This
_audio
attributes group stores the audio properties for the item. It contains values for src.
src (string): File name (including path) of the audio for the item. Path should be relative to the src folder.
_url (object): This
_url
attributes group stores the properties for the item url. It contains values for _src.
_src (string): This text becomes a url which will open in a new browser window.
No known limitations.
Version number: 4.4.2
Framework versions supported: 5.8+
Author / maintainer: DeltaNet with contributors
Accessibility support: Yes
RTL support: Yes
Authoring tool support: yes