Skip to content

A dropdown extension to expand and shrink elements

License

Notifications You must be signed in to change notification settings

cgkineo/adapt-drop

Repository files navigation

adapt-drop

A dropdown extension to expand and shrink elements.

Installation

  • Add the example JSON to elements you wish to shrink. Drop can be used on any element: course, content object, article, block or component.
  • Copy the extension folder into the src > extensions directory and run an appropriate Grunt task.

Usage

  • Select the buttons to expand and shrink elements.

Attributes

Attribute Type Description Default
_isEnabled Boolean Add a dropdown button to expand and shrink the element false
_classes String Custom classes to add to the container ""
title String Button text ""
ariaLabel String Button label for assistive technologies ""

Framework versions: 5.20+
Author / maintainer: CGKineo
Accessibility support: WAI AA
RTL support: Yes
Cross-platform coverage: Chrome, Chrome for Android, Firefox (ESR + latest version), Edge, Safari 12+13 for macOS/iOS/iPadOS, Opera